From 94ef23df977c41306504ae62d6def8b872186e0c Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 17 Sep 2014 11:53:30 +0100 Subject: Use upper-case when printing IDs --- ratatox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ratatox.c b/ratatox.c index 64575d5..38d535f 100644 --- a/ratatox.c +++ b/ratatox.c @@ -597,7 +597,7 @@ localinit(void) } tox_get_address(tox, address); for (i = 0; i < TOX_FRIEND_ADDRESS_SIZE; i++) - fprintf(fp, "%02x", address[i]); + fprintf(fp, "%02X", address[i]); fputc('\n', fp); fclose(fp); @@ -637,7 +637,7 @@ toxconnect(void) static void id2str(uint8_t *id, char *idstr) { - char hex[] = "0123456789abcdef"; + char hex[] = "0123456789ABCDEF"; int i; for (i = 0; i < TOX_CLIENT_ID_SIZE; i++) { -- cgit v1.2.3