summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 7d8b2839..935111d7 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -766,7 +766,7 @@ setup_utmp(int mode)
strlcpy(remotebuf, fromhost, sizeof(fromhost));
strcat(remotebuf, ctime4(&now));
- remotebuf[strlen(remotebuf) - 1] = 0;
+ chomp(remotebuf);
add_distinct(buf, remotebuf);
#endif
if (enter_uflag & CLOAK_FLAG)