From 3853a30acf67bf07fcbb7254eafd31da8f749a32 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Mon, 9 Sep 2013 06:41:33 -0400 Subject: initialize name_length --- toxcore/tox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/tox.c') diff --git a/toxcore/tox.c b/toxcore/tox.c index 83b19e9b..54bbd9f0 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -184,7 +184,7 @@ uint16_t tox_getselfname(void *tox, uint8_t *name, uint16_t nlen) /* Get name of friendnumber and put it in name. * name needs to be a valid memory location with a size of at least MAX_NAME_LENGTH (128) bytes. * - * return 0 if success. + * return length of name (with the NULL terminator) if success. * return -1 if failure. */ int tox_getname(void *tox, int friendnumber, uint8_t *name) -- cgit v1.2.3