diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-19 00:31:53 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-19 00:31:53 +0800 |
commit | 0afdc34099c449efa58429c0555b68395758a5b4 (patch) | |
tree | 067259f7ec8201abf0792abc6bd4812773dcc557 /mbbsd/emaildb.c | |
parent | 3ff5039f02c494a9ad333a3412a89a6f4939458e (diff) | |
download | pttbbs-0afdc34099c449efa58429c0555b68395758a5b4.tar pttbbs-0afdc34099c449efa58429c0555b68395758a5b4.tar.gz pttbbs-0afdc34099c449efa58429c0555b68395758a5b4.tar.bz2 pttbbs-0afdc34099c449efa58429c0555b68395758a5b4.tar.lz pttbbs-0afdc34099c449efa58429c0555b68395758a5b4.tar.xz pttbbs-0afdc34099c449efa58429c0555b68395758a5b4.tar.zst pttbbs-0afdc34099c449efa58429c0555b68395758a5b4.zip |
* allow the 'hold mail' to appear as changed title
* refine emaildb error messages
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4661 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/emaildb.c')
-rw-r--r-- | mbbsd/emaildb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/emaildb.c b/mbbsd/emaildb.c index a5ff2ee7..c9313baf 100644 --- a/mbbsd/emaildb.c +++ b/mbbsd/emaildb.c @@ -89,6 +89,11 @@ end: if (Db != NULL) sqlite3_close(Db); + // XXX exit() can only hold 0~255 for WEXISTSTATUS + assert(127 >= EMAILDB_LIMIT); + if (count > 127) + count = 127; + if (pid == 0) exit(count); |