summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-09 18:05:46 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-09 18:05:46 +0800
commitd4655322c745b6a78706369c5b1926962d0c61c2 (patch)
tree698ebb898c43ade6bed1739f7eb2c57753fbb813 /mbbsd/talk.c
parent2ce96d4a0ce438e1b76fcd7481f91fd7841b84f3 (diff)
downloadpttbbs-d4655322c745b6a78706369c5b1926962d0c61c2.tar
pttbbs-d4655322c745b6a78706369c5b1926962d0c61c2.tar.gz
pttbbs-d4655322c745b6a78706369c5b1926962d0c61c2.tar.bz2
pttbbs-d4655322c745b6a78706369c5b1926962d0c61c2.tar.lz
pttbbs-d4655322c745b6a78706369c5b1926962d0c61c2.tar.xz
pttbbs-d4655322c745b6a78706369c5b1926962d0c61c2.tar.zst
pttbbs-d4655322c745b6a78706369c5b1926962d0c61c2.zip
add modifier "const" to some constant
remove a static char array of 60 bytes from mail.c:doforward avoid DDOS in mail.c:send_inner_mail git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2321 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 9f2791b9..c8bb5d50 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -121,7 +121,7 @@ modestring(userinfo_t * uentp, int simple)
#endif
)
if (uentp->msgcount < 10) {
- char *cnum[10] =
+ const char *cnum[10] =
{"", "一", "兩", "三", "四", "五", "六", "七",
"八", "九"};
snprintf(modestr, sizeof(modestr),
@@ -436,7 +436,7 @@ water_scr(water_t * tw, int which, char type)
{
if (type == 1) {
int i;
- int colors[] = {33, 37, 33, 37, 33};
+ const int colors[] = {33, 37, 33, 37, 33};
move(8 + which, 28);
outc(' ');
move(8 + which, 28);