diff options
-rw-r--r-- | src/DabMux.cpp | 2 | ||||
-rw-r--r-- | src/dabOutput/dabOutput.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp index 2ef28c9..5fb9c17 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -330,7 +330,7 @@ int main(int argc, char *argv[]) bool MNSC_increment_time = false; - if (strncmp(argv[1], "-e", 2) == 0) { // use external config file + if (argc > 1 && strncmp(argv[1], "-e", 2) == 0) { // use external config file try { if (argc != 3) { diff --git a/src/dabOutput/dabOutput.h b/src/dabOutput/dabOutput.h index d076041..5d03184 100644 --- a/src/dabOutput/dabOutput.h +++ b/src/dabOutput/dabOutput.h @@ -30,6 +30,7 @@ #include "UdpSocket.h" #include "TcpServer.h" #include "Log.h" +#include "string.h" #include <stdexcept> #include <signal.h> #ifdef _WIN32 |