diff --git a/apps/app_rpt.c b/apps/app_rpt.c
index 584d4dfcf554745ed4038e17e2ff933b96daea65..57b43f552356b56b1498d5b0ac9029a970eba0f9 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;
 }