diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-07 08:50:12 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-07 08:50:12 +0100 |
commit | 2356d1f77f4a2a3dd75638621d687dc9d3771d6c (patch) | |
tree | baf58df5181f4a9402590005747bc5d818ade9d9 | |
parent | 400df39cb1c7565b5fc8f3dbfef0c054b4bb65f4 (diff) | |
download | dabmux-2356d1f77f4a2a3dd75638621d687dc9d3771d6c.tar.gz dabmux-2356d1f77f4a2a3dd75638621d687dc9d3771d6c.tar.bz2 dabmux-2356d1f77f4a2a3dd75638621d687dc9d3771d6c.zip |
fix minor mistakes
-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 |