subtraction is unneeded
Ali H. Fardan raiz@firemail.cc
Mon, 12 Sep 2016 13:51:43 +0300
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
slstatus.c
→
slstatus.c
@@ -260,7 +260,7 @@ }
fgets(hostname, sizeof(hostname), fp); /* FIXME: needs improvement */ - memset(&hostname[strlen(hostname)-1], '\0', + memset(&hostname[strlen(hostname)], '\0', sizeof(hostname) - strlen(hostname)); fclose(fp);