summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2019-05-09 10:20:08 +1000
committerAndrew Pamment <apamment@yandex.com>2019-05-09 10:20:08 +1000
commitc2b2b40c76542ae3896a4b71655e2896949732b9 (patch)
tree21d926230ea739ebeb482d07f92980300ab11a09
parente99533e6892e0f9c2875e594138a6ecec026214b (diff)
add space before messages in dat file
-rw-r--r--src/bluewave.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bluewave.c b/src/bluewave.c
index e6f9f2b..6528ac2 100644
--- a/src/bluewave.c
+++ b/src/bluewave.c
@@ -242,7 +242,7 @@ int bwave_scan_area(int confr, int area, int areano, int totmsgs, FILE *fti_file
fti.msglength = convertl(strlen(body));
- *last_ptr += strlen(body);
+ *last_ptr += strlen(body) + 1;
if (get_message_islocal(msghs, k)) {
fti.flags |= FTI_MSGLOCAL;
@@ -262,6 +262,7 @@ int bwave_scan_area(int confr, int area, int areano, int totmsgs, FILE *fti_file
fti.orig_node = 0;
}
// write msg data
+ fwrite(" ", 1, 1, dat_file);
fwrite(body, 1, strlen(body), dat_file);
fwrite(&fti, sizeof(FTI_REC), 1, fti_file);