diff options
author | z3bra <contactatz3bradotorg> | 2016-11-08 13:35:33 +0100 |
---|---|---|
committer | z3bra <contactatz3bradotorg> | 2016-11-08 16:47:52 +0100 |
commit | bfc61ad1472843bb515394f95901c2d54889825f (patch) | |
tree | 4571f0daa0f84c218f596dafeda8601972b551af /ratox.c | |
parent | 60d8ca29e1aa2be4261d51e0019e5f0615e2c238 (diff) |
Convert ID string using TOX_PUBLIC_KEY_SIZE
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; } |