subtraction is unneeded
This commit is contained in:
parent
d19d4aa2e8
commit
e6158e300d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user