diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-12 10:19:08 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-12 10:19:08 +0800 |
commit | 1e47c1b50c691374edc30281c51a2ea48a5383fa (patch) | |
tree | 8d42bdc8e34489d422029e77936cf9d0c0247251 /mbbsd | |
parent | 030d6be038cee4365547eb8cde371f402940a49f (diff) | |
download | pttbbs-1e47c1b50c691374edc30281c51a2ea48a5383fa.tar pttbbs-1e47c1b50c691374edc30281c51a2ea48a5383fa.tar.gz pttbbs-1e47c1b50c691374edc30281c51a2ea48a5383fa.tar.bz2 pttbbs-1e47c1b50c691374edc30281c51a2ea48a5383fa.tar.lz pttbbs-1e47c1b50c691374edc30281c51a2ea48a5383fa.tar.xz pttbbs-1e47c1b50c691374edc30281c51a2ea48a5383fa.tar.zst pttbbs-1e47c1b50c691374edc30281c51a2ea48a5383fa.zip |
- chat: increase query picture length
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4140 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c index b205b188..e7b5f1dd 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -193,7 +193,7 @@ chat_query(char *arg) printchatline(""); strtok_r(arg, str_space, &strtok_pos); if ((uid = strtok_r(NULL, str_space, &strtok_pos)) && (tuid = getuser(uid, &xuser))) { - char buf[128], *ptr; + char buf[ANSILINELEN], *ptr; FILE *fp; snprintf(buf, sizeof(buf), "%s(%s) 共上站 %d 次,發表過 %d 篇文章", @@ -209,7 +209,7 @@ chat_query(char *arg) sethomefile(buf, xuser.userid, fn_plans); if ((fp = fopen(buf, "r"))) { tuid = 0; - while (tuid++ < MAX_QUERYLINES && fgets(buf, 128, fp)) { + while (tuid++ < MAX_QUERYLINES && fgets(buf, sizeof(buf), fp)) { if ((ptr = strchr(buf, '\n'))) ptr[0] = '\0'; printchatline(buf); |