[svn-commits] russell: branch group/upenn r104018 - /team/group/upenn/res/res_smdi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Feb 21 10:31:22 CST 2008


Author: russell
Date: Thu Feb 21 10:31:22 2008
New Revision: 104018

URL: http://svn.digium.com/view/asterisk?view=rev&rev=104018
Log:
Don't store a space in the calling station buffer

Modified:
    team/group/upenn/res/res_smdi.c

Modified: team/group/upenn/res/res_smdi.c
URL: http://svn.digium.com/view/asterisk/team/group/upenn/res/res_smdi.c?view=diff&rev=104018&r1=104017&r2=104018
==============================================================================
--- team/group/upenn/res/res_smdi.c (original)
+++ team/group/upenn/res/res_smdi.c Thu Feb 21 10:31:22 2008
@@ -565,11 +565,13 @@
 				if (!isdigit((c = fgetc(iface->file)))) {
 					*cp = '\0';
 					ast_log(LOG_DEBUG, "Read a '%c', but didn't store it in the calling station buffer because it's not a digit\n", c);
-					if (c != ' ') {
+					if (c == ' ') {
 						/* Don't break on a space.  We may read the space before the calling station
 						 * here if the forwarding station buffer filled up. */
-						break;
+						i--; /* We're still on the same character */
+						continue;
 					}
+					break;
 				}
 
 				/* store c in md_msg->calling_st */




More information about the svn-commits mailing list