From 46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 16 Aug 2005 05:39:17 +0000 Subject: include/common.h, mbbsd/friend.c: check buffer size include/fpg.h: highlight the bug mbbsd/talk.c: change that odd time_t worked as a boolean to int git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3046 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/common.h | 3 +++ include/fpg.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index acbf688d..cc5e6980 100644 --- a/include/common.h +++ b/include/common.h @@ -220,6 +220,9 @@ #define MAX(a,b) (((a)>(b))?(a):(b)) #endif +#define toSTR(x) __toSTR(x) +#define __toSTR(x) #x + #define char_lower(c) ((c >= 'A' && c <= 'Z') ? c|32 : c) #define STR_CURSOR "●" diff --git a/include/fpg.h b/include/fpg.h index f237b967..0065cba5 100644 --- a/include/fpg.h +++ b/include/fpg.h @@ -3,7 +3,7 @@ #define BTLEN 48 /* Length of board title */ #define NAMELEN 40 /* Length of username/realname */ #define FNLEN 33 /* Length of filename */ - /* Ptt 說這裡有bug*/ + /* XXX Ptt 說這裡有bug*/ #define IDLEN 12 /* Length of bid/uid */ #define PASSLEN 14 /* Length of encrypted passwd field */ #define REGLEN 38 /* Length of registration data */ -- cgit v1.2.3