summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-04-15 20:36:39 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-04-15 20:36:39 +0800
commite7220a4977a2e1eeabebe054ba6ef331ca335190 (patch)
tree15596fc762ede5052660d014e192efd8595a40d6
parent29504570b90507ef866dcc9ffe550efefdd5b4b4 (diff)
downloadpttbbs-e7220a4977a2e1eeabebe054ba6ef331ca335190.tar
pttbbs-e7220a4977a2e1eeabebe054ba6ef331ca335190.tar.gz
pttbbs-e7220a4977a2e1eeabebe054ba6ef331ca335190.tar.bz2
pttbbs-e7220a4977a2e1eeabebe054ba6ef331ca335190.tar.lz
pttbbs-e7220a4977a2e1eeabebe054ba6ef331ca335190.tar.xz
pttbbs-e7220a4977a2e1eeabebe054ba6ef331ca335190.tar.zst
pttbbs-e7220a4977a2e1eeabebe054ba6ef331ca335190.zip
dashs won't return 0 for non-exist files.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5659 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index a68b8e79..6cc65804 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -1168,7 +1168,7 @@ do_crosspost(const char *brd, fileheader_t *postfile, const char *fpath)
dbcs_safe_trim_title(fh.title + strlen(fh.title), title, len);
snprintf(fh.title + strlen(fh.title), sizeof(fh.title) - strlen(fh.title),
".%sªO", currboard);
- if (dashs(genbuf)) {
+ if (dashs(genbuf) > 0) {
log_filef("log/conflict.log", LOG_CREAT,
"%s %s->%s %s: %s\n", Cdatelite(&now),
currboard, brd, fh.filename, fh.title);