From bfc61ad1472843bb515394f95901c2d54889825f Mon Sep 17 00:00:00 2001 From: z3bra Date: Tue, 8 Nov 2016 13:35:33 +0100 Subject: Convert ID string using TOX_PUBLIC_KEY_SIZE --- ratox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratox.c b/ratox.c index 677bf94..1a9083d 100644 --- a/ratox.c +++ b/ratox.c @@ -1202,7 +1202,7 @@ id2str(uint8_t *id, char *idstr) int i; char hex[] = "0123456789ABCDEF"; - for (i = 0; i < TOX_ADDRESS_SIZE; i++) { + for (i = 0; i < TOX_PUBLIC_KEY_SIZE; i++) { *idstr++ = hex[(id[i] >> 4) & 0xf]; *idstr++ = hex[id[i] & 0xf]; } -- cgit v1.2.3