From 1d02c374c8877d430f4ab35a790fc02f02974704 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 26 May 2010 14:35:22 +0000 Subject: Fixed most of the compilation warnings, and a valgrind warning in the fstring's remove function. memcpy can't do overlapping memory, changed it to use memmove. --- src/tools/mkunit.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tools/mkunit.cpp') diff --git a/src/tools/mkunit.cpp b/src/tools/mkunit.cpp index 0454013..12ce65f 100644 --- a/src/tools/mkunit.cpp +++ b/src/tools/mkunit.cpp @@ -540,6 +540,11 @@ private: int main( int argc, char *argv[] ) { + if( argc < 3 ) + { + sio << "Too few parameters." << sio.nl; + return 0; + } Parser p( argv[1] ); p.firstPass(); -- cgit v1.2.3