fix what i broke

This commit is contained in:
Andrew Pamment 2018-05-26 16:29:46 +10:00
parent d026b7ec24
commit 75f6d69b95

View File

@ -249,7 +249,7 @@ int main(int argc, char **argv) {
struct msg_t msg;
uuid_t myuuid;
char msgid[37];
FILE *fptr;
FILE *fptr, *fptr2;
struct stat st;
if (argc != 6) {
@ -307,9 +307,9 @@ int main(int argc, char **argv) {
}
// add config line
fptr = fopen(argv[1], "a");
fprintf(fptr, "MSGAREA %d, %d, %s\n", msg.area, msg.daddr, argv[5]);
fclose(fptr);
fptr2 = fopen(argv[1], "a");
fprintf(fptr2, "MSGAREA %d, %d, %s\n", msg.area, msg.daddr, argv[5]);
fclose(fptr2);
msg_to_nl(&msg);