From e7220a4977a2e1eeabebe054ba6ef331ca335190 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 15 Apr 2012 12:36:39 +0000 Subject: dashs won't return 0 for non-exist files. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5659 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/bbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3