summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-07 22:36:47 +0800
committermhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-01-07 22:36:47 +0800
commitd512ded55461ccd9e07e9f40eca8c402ff502627 (patch)
tree1598704ada69e0113638a6769fde690d8ab44275
parentecc760d70061e6c61bbd43daab19cd18dac9e309 (diff)
downloadpttbbs-d512ded55461ccd9e07e9f40eca8c402ff502627.tar
pttbbs-d512ded55461ccd9e07e9f40eca8c402ff502627.tar.gz
pttbbs-d512ded55461ccd9e07e9f40eca8c402ff502627.tar.bz2
pttbbs-d512ded55461ccd9e07e9f40eca8c402ff502627.tar.lz
pttbbs-d512ded55461ccd9e07e9f40eca8c402ff502627.tar.xz
pttbbs-d512ded55461ccd9e07e9f40eca8c402ff502627.tar.zst
pttbbs-d512ded55461ccd9e07e9f40eca8c402ff502627.zip
Fix area calculation for disabled URL querying site.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4426 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index a3fcbc76..d4ba1ba8 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -3429,7 +3429,11 @@ view_postinfo(int ent, const fileheader_t * fhdr, const char *direct, int crs_ln
aidu_t aidu = 0;
int l = crs_ln + 3; /* line of cursor */
int area_l = l + 1;
+#ifdef QUERY_ARTICLE_URL
const int area_lines = 5;
+#else
+ const int area_lines = 4;
+#endif
if(!fhdr || fhdr->filename[0] == '.' || !fhdr->filename[0])
return DONOTHING;