[Asterisk-cvs] asterisk/apps app_rpt.c,1.37,1.38
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Fri Jul 15 12:08:07 CDT 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv10839/apps
Modified Files:
app_rpt.c
Log Message:
revert unneeded change and add comment to avoid it in the future
Index: app_rpt.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_rpt.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- app_rpt.c 15 Jul 2005 16:10:21 -0000 1.37
+++ app_rpt.c 15 Jul 2005 16:15:57 -0000 1.38
@@ -379,7 +379,8 @@
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;
}
More information about the svn-commits
mailing list