Fixes for QWK scan
This commit is contained in:
parent
8a3e8a2f6e
commit
1a6637aa03
@ -262,7 +262,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) {
|
||||
fptr = fopen(buffer, "r+");
|
||||
if (!fptr) {
|
||||
fptr = fopen(buffer, "w");
|
||||
if (!fptr) {
|
||||
if (fptr) {
|
||||
memset(text, ' ', 128);
|
||||
memcpy(text, hostid, strlen(hostid));
|
||||
fwrite(text, 128, 1, fptr);
|
||||
@ -336,6 +336,8 @@ int main(int argc, char **argv) {
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
mkdir(temp_dir, 0755);
|
||||
|
||||
for (i=0;i<msgbasecount;i++) {
|
||||
msgcount = export_messages(msgbases[i]->baseno, msgbases[i]->path, qwkidx);
|
||||
qwkidx += msgcount;
|
||||
|
Reference in New Issue
Block a user