From d8f90d2499e5c71c0678420e83a3fd1cfe2d36f4 Mon Sep 17 00:00:00 2001 From: wens Date: Sun, 26 Jun 2011 05:42:41 +0000 Subject: Offset off by 1 git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5367 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/daemon/boardd/boardd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pttbbs/daemon/boardd/boardd.c b/pttbbs/daemon/boardd/boardd.c index 6ec09610..70bbc4cd 100644 --- a/pttbbs/daemon/boardd/boardd.c +++ b/pttbbs/daemon/boardd/boardd.c @@ -130,7 +130,7 @@ answer_key(struct evbuffer *buf, const char *key) return article_list(buf, bptr, offset, length); } else if (strncmp(key, "article.", 8) == 0) { - if (strncmp(key + 9, "M.", 2) != 0) + if (strncmp(key + 8, "M.", 2) != 0) return; char path[PATH_MAX]; -- cgit v1.2.3