diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-27 00:14:01 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-27 00:14:01 +0800 |
commit | 6eaf609b1e9cc01df8057e30a82379ccf7e32d30 (patch) | |
tree | ca44eae890f0d11978b9d540e932cb0cac2ac6f2 /mbbsd/announce.c | |
parent | 9aea9f1fa692db1d9db6b55d78715f9ee22402ba (diff) | |
download | pttbbs-6eaf609b1e9cc01df8057e30a82379ccf7e32d30.tar pttbbs-6eaf609b1e9cc01df8057e30a82379ccf7e32d30.tar.gz pttbbs-6eaf609b1e9cc01df8057e30a82379ccf7e32d30.tar.bz2 pttbbs-6eaf609b1e9cc01df8057e30a82379ccf7e32d30.tar.lz pttbbs-6eaf609b1e9cc01df8057e30a82379ccf7e32d30.tar.xz pttbbs-6eaf609b1e9cc01df8057e30a82379ccf7e32d30.tar.zst pttbbs-6eaf609b1e9cc01df8057e30a82379ccf7e32d30.zip |
more assertion for tracking bug.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3304 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r-- | mbbsd/announce.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 81944e9e..38648623 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -174,6 +174,7 @@ a_loadname(menu_t * pm) setadir(buf, pm->path); len = get_records(buf, pm->header, FHSZ, pm->page + 1, pm->header_size); // XXX if get_records() return -1 + assert(len!=-1); if (len < pm->header_size) bzero(&pm->header[len], FHSZ * (pm->header_size - len)); } |