From 2356d1f77f4a2a3dd75638621d687dc9d3771d6c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 7 Feb 2014 08:50:12 +0100 Subject: fix minor mistakes --- src/DabMux.cpp | 2 +- src/dabOutput/dabOutput.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 #include #ifdef _WIN32 -- cgit v1.2.3