You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
403 B

--- 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, ",") ;