From 925a7c2bdf93c3a0209552285b77e2e585a799c4 Mon Sep 17 00:00:00 2001 From: GDR! Date: Thu, 11 Dec 2014 22:31:49 +0100 Subject: Fixed a warning and printing garbage --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') diff --git a/util.c b/util.c index 8391279..86d316d 100644 --- a/util.c +++ b/util.c @@ -43,7 +43,7 @@ void to_hex(char_t *a, const char_t *p, int size) /* From utox/util.c */ void id_to_string(char_t *dest, const char_t *src) { - to_hex(dest, src, TOX_FRIEND_ADDRESS_SIZE - 1); + to_hex(dest, src, TOX_FRIEND_ADDRESS_SIZE); } /* From utox/util.c */ -- cgit v1.2.3