cmdpad: fix a compile error
authorFelix Fietkau <nbd@openwrt.org>
Mon, 19 Oct 2009 07:08:00 +0000 (07:08 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 19 Oct 2009 07:08:00 +0000 (07:08 +0000)
SVN-Revision: 18068

utils/cmdpad/patches/140-compile_fix.patch [new file with mode: 0644]

diff --git a/utils/cmdpad/patches/140-compile_fix.patch b/utils/cmdpad/patches/140-compile_fix.patch
new file mode 100644 (file)
index 0000000..c7a9bb3
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/parse.c
++++ b/src/parse.c
+@@ -125,7 +125,7 @@ int readCommandLine( int argc, char *arg
+       
+                       d2printf( "command line command %s found\n", pchCommandTranslations[ iCmd+1]) ;
+             
+-                      vsnprintf( achCommand, sizeof( achCommand), 
++                      snprintf( achCommand, sizeof( achCommand), 
+                                  pchCommandTranslations[ iCmd+1], 
+                                  &argv[ i+1]) ;
+