From 27da57aebfba90702e79642cb71c088be5a6f926 Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 30 Sep 2014 15:28:17 +0100 Subject: Allow empty names --- ratox.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index e773354..dce458e 100644 --- a/ratox.c +++ b/ratox.c @@ -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(); -- cgit v1.2.3