summaryrefslogtreecommitdiffstats
path: root/innbbsd/receive_article.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-07 00:48:08 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-07 00:48:08 +0800
commit31608b78029a559ff1de6aa1188318c79c76f698 (patch)
tree0938b2d40ba1853dd775f758a6c476f53fa1144a /innbbsd/receive_article.c
parent3a374a93478bb790ccd98afd6fc17e752d235746 (diff)
downloadpttbbs-31608b78029a559ff1de6aa1188318c79c76f698.tar
pttbbs-31608b78029a559ff1de6aa1188318c79c76f698.tar.gz
pttbbs-31608b78029a559ff1de6aa1188318c79c76f698.tar.bz2
pttbbs-31608b78029a559ff1de6aa1188318c79c76f698.tar.lz
pttbbs-31608b78029a559ff1de6aa1188318c79c76f698.tar.xz
pttbbs-31608b78029a559ff1de6aa1188318c79c76f698.tar.zst
pttbbs-31608b78029a559ff1de6aa1188318c79c76f698.zip
- fix compile warnings
- str_decode_M3: Assume output size is shorter than input size. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4501 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/receive_article.c')
-rw-r--r--innbbsd/receive_article.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/innbbsd/receive_article.c b/innbbsd/receive_article.c
index 28d2a4aa..becdda61 100644
--- a/innbbsd/receive_article.c
+++ b/innbbsd/receive_article.c
@@ -739,7 +739,7 @@ post_article(homepath, userid, board, writebody, pathname, firstpath)
now = time(NULL);
while (1) {
- sprintf(name, "M.%ld.A", ++now);
+ sprintf(name, "M.%ld.A", (long)++now);
sprintf(article, "%s/%s", homepath, name);
fh = open(article, O_CREAT | O_EXCL | O_WRONLY, 0644);
if (fh >= 0)