aboutsummaryrefslogtreecommitdiff
path: root/utils/cmdpad/patches/160-format.patch
blob: 4c4f13db992fc80269ce1896adda1498597e6644 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/parse.c
+++ b/src/parse.c
@@ -257,7 +257,7 @@ int ParseCommand( char * pchCommandLine)
 
       pchValue = strtok( pchValue, ",") ; 
       d2printf( "Value is '%s'\n", pchValue) ;
-      if( (pchValue == NULL ) || ( sscanf( pchValue, "%d", &code) != 1) )
+      if( (pchValue == NULL ) || ( sscanf( pchValue, "%hu", &code) != 1) )
 	return -1 ;
       
       pchValue = strtok( NULL, ",") ;