subtraction is unneeded
This commit is contained in:
parent
d19d4aa2e8
commit
e6158e300d
1 changed files with 1 additions and 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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue