summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-14 09:55:50 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-14 09:55:50 +0800
commit115cf628efd96f27a9f8b4379e1b87b31293921f (patch)
treef8eea4619ad73b44cf5e30bbed029ab11a538d37 /mbbsd/mbbsd.c
parentf1bc6dac35a6a45533c32ec3d0d52af01c07fd34 (diff)
downloadpttbbs-115cf628efd96f27a9f8b4379e1b87b31293921f.tar
pttbbs-115cf628efd96f27a9f8b4379e1b87b31293921f.tar.gz
pttbbs-115cf628efd96f27a9f8b4379e1b87b31293921f.tar.bz2
pttbbs-115cf628efd96f27a9f8b4379e1b87b31293921f.tar.lz
pttbbs-115cf628efd96f27a9f8b4379e1b87b31293921f.tar.xz
pttbbs-115cf628efd96f27a9f8b4379e1b87b31293921f.tar.zst
pttbbs-115cf628efd96f27a9f8b4379e1b87b31293921f.zip
wrong format in usies
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1757 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 0e4624b0..68dfb91d 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -118,10 +118,10 @@ log_usies(char *mode, char *mesg)
(int)(now - login_start_time) / 60);
if(cuser && cuser->userid[0])
- sprintf(genbuf+38, "%s %s ", cuser->userid, cuser->username);
+ sprintf(genbuf+38, "%s %s\n", cuser->userid, cuser->username);
if(mesg)
- strcat(genbuf, mesg);
+ sprintf(genbuf + strlen(genbuf) - 1, " %s\n", mesg);
log_file(FN_USIES, genbuf, 1);