diff options
author | irungentoo <irungentoo@gmail.com> | 2013-09-09 04:49:56 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-09-09 04:49:56 -0700 |
commit | 7722d420e745becedc806a5fb71b5e448d32e232 (patch) | |
tree | 768ff095fbb9f6c0e73b57b4bdada310aca25dc6 /toxcore/tox.c | |
parent | 0d41d7f9c05a753c54cc7a3f2535d20ae3f5aaf4 (diff) | |
parent | 7e84ba460688f54a4ccb33b6c3395e090a36cc89 (diff) |
Merge pull request #565 from JFreegman/master
initialize name_length
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
184 | /* Get name of friendnumber and put it in name. | 184 | /* Get name of friendnumber and put it in name. |
185 | * name needs to be a valid memory location with a size of at least MAX_NAME_LENGTH (128) bytes. | 185 | * name needs to be a valid memory location with a size of at least MAX_NAME_LENGTH (128) bytes. |
186 | * | 186 | * |
187 | * return 0 if success. | 187 | * return length of name (with the NULL terminator) if success. |
188 | * return -1 if failure. | 188 | * return -1 if failure. |
189 | */ | 189 | */ |
190 | int tox_getname(void *tox, int friendnumber, uint8_t *name) | 190 | int tox_getname(void *tox, int friendnumber, uint8_t *name) |