diff options
-rwxr-xr-x | apps/app_rpt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_rpt.c b/apps/app_rpt.c index 584d4dfcf..57b43f552 100755 --- a/apps/app_rpt.c +++ b/apps/app_rpt.c @@ -379,7 +379,8 @@ static int myatoi(char *str) int ret; if (str == NULL) return -1; - if (sscanf(str,"%d",&ret) != 1) return -1; + /* leave this %i alone, non-base-10 input is useful here */ + if (sscanf(str,"%i",&ret) != 1) return -1; return ret; } |