cmdpad: fix a compile error
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Oct 2009 07:08:00 +0000 (07:08 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Oct 2009 07:08:00 +0000 (07:08 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@18068 3c298f89-4303-0410-b956-a3cf2f4a3e73

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]) ;
+