summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 288c1749..046e95d8 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -565,7 +565,7 @@ append_record(const char *fpath, const fileheader_t * record, int size)
}
int
-append_record_forward(char *fpath, fileheader_t * record, int size)
+append_record_forward(char *fpath, fileheader_t * record, int size, const char *origid)
{
#if !defined(_BBS_UTIL_C_)
int m, n;
@@ -581,7 +581,7 @@ append_record_forward(char *fpath, fileheader_t * record, int size)
if ((fp = fopen(buf, "r"))) {
fscanf(fp, "%s", address); // XXX check buffer size
fclose(fp);
- if (buf[0] != 0 && buf[0] != ' ') {
+ if (buf[0] != 0 && buf[0] != ' ' && strcmp(buf, origid) != 0) {
buf[n + 1] = 0;
strcat(buf, record->filename);
append_record(fpath, record, size);