From a17347fdb143f5d2191fb3255e9846753ff4af16 Mon Sep 17 00:00:00 2001 From: cora32 Date: Tue, 24 Mar 2015 00:32:12 +0300 Subject: [PATCH] Import list-mode saving fix. --- nesca_startModule.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nesca_startModule.cpp b/nesca_startModule.cpp index 5cc3d14..ce66688 100644 --- a/nesca_startModule.cpp +++ b/nesca_startModule.cpp @@ -204,7 +204,13 @@ void _SaveBackupToFile() FILE *savingFile = fopen("tempIPLst.bk", "w"); if (savingFile != NULL) { - for(int tCounter = gC; tCounter < flCounter; ++tCounter) + sprintf(ipRange, "%s-%d.%d.%d.%d\n", + currentIP, + ipsendfl[gC][0], ipsendfl[gC][1], ipsendfl[gC][2], ipsendfl[gC][3]); + fputs(ipRange, savingFile); + + ZeroMemory(ipRange, sizeof(ipRange)); + for(int tCounter = gC + 1; tCounter < flCounter; ++tCounter) { sprintf(ipRange, "%d.%d.%d.%d-%d.%d.%d.%d\n", ipsstartfl[tCounter][0], ipsstartfl[tCounter][1], ipsstartfl[tCounter][2], ipsstartfl[tCounter][3],