diff options
author | sin <sin@2f30.org> | 2014-09-30 15:28:17 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-30 15:28:17 +0100 |
commit | 27da57aebfba90702e79642cb71c088be5a6f926 (patch) | |
tree | 344eb9a8e3f05b85e461d0f7411d0c96d6f03266 /ratox.c | |
parent | fa0f7f78571ce6374113b871f71935ec661148a9 (diff) |
Allow empty names
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1012,8 +1012,6 @@ setname(void *data) return; if (name[n - 1] == '\n') n--; - if (n == 0) - return; name[n] = '\0'; tox_set_name(tox, (uint8_t *)name, n); datasave(); |