summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-16 22:38:35 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-16 22:38:35 +0800
commit798578d4ab39420b79318eb2a274f8aecb558bf5 (patch)
treed0312b159682ca086960fbe91d02e84762d4dd02 /mbbsd/mbbsd.c
parent169cf5d08f377d095f133495e0577dcd8698cb25 (diff)
downloadpttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar
pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.gz
pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.bz2
pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.lz
pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.xz
pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.tar.zst
pttbbs-798578d4ab39420b79318eb2a274f8aecb558bf5.zip
eliminate `static' array
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@612 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 521673c5..74418777 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.61 2003/01/14 11:19:39 in2 Exp $ */
+/* $Id: mbbsd.c,v 1.62 2003/01/16 14:38:35 kcwu Exp $ */
#include "bbs.h"
#define SOCKET_QLEN 4
@@ -251,11 +251,12 @@ talk_request(int sig)
bell();
if (currutmp->msgcount) {
char buf[200];
+ char timebuf[100];
time_t now = time(0);
snprintf(buf, sizeof(buf),
"\033[33;41m★%s\033[34;47m [%s] %s \033[0m",
- SHM->uinfo[currutmp->destuip].userid, my_ctime(&now),
+ SHM->uinfo[currutmp->destuip].userid, my_ctime(&now,timebuf,sizeof(timebuf)),
(currutmp->sig == 2) ? "重要消息廣播!(請Ctrl-U,l查看熱訊記錄)"
: "呼叫、呼叫,聽到請回答");
move(0, 0);