summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-07 18:23:59 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-07 18:23:59 +0800
commit72cc341f9fe53547460915edcf32cc99630898c5 (patch)
tree46bbb0d8e19bb203832a6b08ef9330b6d5c0477e /mbbsd/record.c
parent66654cf0343e89d43cdab80c19bbba58bd777400 (diff)
downloadpttbbs-72cc341f9fe53547460915edcf32cc99630898c5.tar
pttbbs-72cc341f9fe53547460915edcf32cc99630898c5.tar.gz
pttbbs-72cc341f9fe53547460915edcf32cc99630898c5.tar.bz2
pttbbs-72cc341f9fe53547460915edcf32cc99630898c5.tar.lz
pttbbs-72cc341f9fe53547460915edcf32cc99630898c5.tar.xz
pttbbs-72cc341f9fe53547460915edcf32cc99630898c5.tar.zst
pttbbs-72cc341f9fe53547460915edcf32cc99630898c5.zip
fix r2723 - I'm also an idiot ><
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2788 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 046e95d8..47eae492 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -579,9 +579,10 @@ append_record_forward(char *fpath, fileheader_t * record, int size, const char *
for (m = strlen(buf) - 2; buf[m] != '/' && m > 0; m--);
strcat(buf, ".forward"); // XXX check buffer size
if ((fp = fopen(buf, "r"))) {
+ address[0] = 0;
fscanf(fp, "%s", address); // XXX check buffer size
fclose(fp);
- if (buf[0] != 0 && buf[0] != ' ' && strcmp(buf, origid) != 0) {
+ if (buf[0] != 0 && buf[0] != ' ' && strcmp(address, origid) != 0) {
buf[n + 1] = 0;
strcat(buf, record->filename);
append_record(fpath, record, size);