diff options
author | Ali H. Fardan <raiz@firemail.cc> | 2016-09-12 13:51:43 +0300 |
---|---|---|
committer | Ali H. Fardan <raiz@firemail.cc> | 2016-09-12 13:51:43 +0300 |
commit | e6158e300d3134e44f741e01108dd088297c476f (patch) | |
tree | 7c54ee798211241c64953bd48c1a92556723fac2 /slstatus.c | |
parent | d19d4aa2e8be789c7d3c4849a7c5d9fcec18da5d (diff) |
subtraction is unneeded
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -260,7 +260,7 @@ hostname(void) 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); |