diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-16 13:39:17 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-16 13:39:17 +0800 |
commit | 46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d (patch) | |
tree | 70bede25e9ceab2711f456b941b1cad345194dd7 /include | |
parent | 95bd148f89a965c00b11771ccdf1d7090f4f308a (diff) | |
download | pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.gz pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.bz2 pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.lz pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.xz pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.zst pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 3 | ||||
-rw-r--r-- | include/fpg.h | 2 |
2 files changed, 4 insertions, 1 deletions
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 */ |