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+");
|
fptr = fopen(buffer, "r+");
|
||||||
if (!fptr) {
|
if (!fptr) {
|
||||||
fptr = fopen(buffer, "w");
|
fptr = fopen(buffer, "w");
|
||||||
if (!fptr) {
|
if (fptr) {
|
||||||
memset(text, ' ', 128);
|
memset(text, ' ', 128);
|
||||||
memcpy(text, hostid, strlen(hostid));
|
memcpy(text, hostid, strlen(hostid));
|
||||||
fwrite(text, 128, 1, fptr);
|
fwrite(text, 128, 1, fptr);
|
||||||
@ -336,6 +336,8 @@ int main(int argc, char **argv) {
|
|||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mkdir(temp_dir, 0755);
|
||||||
|
|
||||||
for (i=0;i<msgbasecount;i++) {
|
for (i=0;i<msgbasecount;i++) {
|
||||||
msgcount = export_messages(msgbases[i]->baseno, msgbases[i]->path, qwkidx);
|
msgcount = export_messages(msgbases[i]->baseno, msgbases[i]->path, qwkidx);
|
||||||
qwkidx += msgcount;
|
qwkidx += msgcount;
|
||||||
|
Reference in New Issue
Block a user