diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-10 14:20:14 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-10 14:20:14 +0800 |
commit | 790ef96d3e3319f448800689eb40b62aaad31a73 (patch) | |
tree | 3e896b458b2b19f1acf6c34fac4c2f7565178f57 | |
parent | 1baa5cc29474dd048caaccbb096953094a53e6a4 (diff) | |
download | pttbbs-790ef96d3e3319f448800689eb40b62aaad31a73.tar pttbbs-790ef96d3e3319f448800689eb40b62aaad31a73.tar.gz pttbbs-790ef96d3e3319f448800689eb40b62aaad31a73.tar.bz2 pttbbs-790ef96d3e3319f448800689eb40b62aaad31a73.tar.lz pttbbs-790ef96d3e3319f448800689eb40b62aaad31a73.tar.xz pttbbs-790ef96d3e3319f448800689eb40b62aaad31a73.tar.zst pttbbs-790ef96d3e3319f448800689eb40b62aaad31a73.zip |
slight changes
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2487 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | innbbsd/bbslink.c | 2 | ||||
-rw-r--r-- | mbbsd/cache.c | 7 | ||||
-rw-r--r-- | mbbsd/mail.c | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/innbbsd/bbslink.c b/innbbsd/bbslink.c index 1222db33..ae801785 100644 --- a/innbbsd/bbslink.c +++ b/innbbsd/bbslink.c @@ -801,7 +801,7 @@ post_article(node, site, sover, textline) fprintf(NNTPwfp, "Organization: %s\r\n", MYSITE); fprintf(NNTPwfp, "Message-ID: <%s>\r\n", sover->msgid); fprintf(NNTPwfp, "Mime-Version: 1.0\r\n"); - fprintf(NNTPwfp, "Content-Type: text/plain; charset=Big5\r\n"); + fprintf(NNTPwfp, "Content-Type: text/plain; charset=big5\r\n"); fprintf(NNTPwfp, "Content-Transfer-Encoding: 8bit\r\n"); fprintf(NNTPwfp, "X-Filename: %s/%s\r\n", sover->board, sover->filename); } diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 90b73ab8..4369c9f1 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -494,8 +494,11 @@ static int cmpboardclass(const void * i, const void * j) { boardheader_t *brd1 = &bcache[*(int*)i], *brd2 = &bcache[*(int*)j]; - return (strncmp(brd1->title, brd2->title, 4) << 8) + - strcasecmp(brd1->brdname, brd2->brdname); + int cmp; + + cmp=strncmp(brd1->title, brd2->title, 4); + if(cmp!=0) return cmp; + return strcasecmp(brd1->brdname, brd2->brdname); } diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 6657f6a3..997f1d0f 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -426,7 +426,7 @@ multi_send(char *title) reciper = 1; fp = fopen(quote_file, "r"); assert(fp); - while (fgets(genbuf, 256, fp)) { + while (fgets(genbuf, sizeof(genbuf), fp)) { if (strncmp(genbuf, "กฐ ", 3)) { if (listing) break; |