[Asterisk-cvs] asterisk/apps app_rpt.c,1.36,1.37
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Fri Jul 15 12:02:31 CDT 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv10720/apps
Modified Files:
app_rpt.c
Log Message:
don't use %i for scanf unless non-base-10 input is needed (bug #4717)
Index: app_rpt.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_rpt.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- app_rpt.c 10 Jul 2005 03:13:42 -0000 1.36
+++ app_rpt.c 15 Jul 2005 16:10:21 -0000 1.37
@@ -379,7 +379,7 @@
int ret;
if (str == NULL) return -1;
- if (sscanf(str,"%i",&ret) != 1) return -1;
+ if (sscanf(str,"%d",&ret) != 1) return -1;
return ret;
}
More information about the svn-commits
mailing list