[asterisk-addons-commits] mnicholson: branch mnicholson/chan-mobile-refactor r753 - /team/mnicholson/ch...

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Tue Jan 27 09:43:05 CST 2009


Author: mnicholson
Date: Tue Jan 27 09:43:04 2009
New Revision: 753

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=753
Log:
fixed off by one error in rfcomm_read()

Modified:
    team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c

Modified: team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c
URL: http://svn.digium.com/svn-view/asterisk-addons/team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c?view=diff&rev=753&r1=752&r2=753
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Tue Jan 27 09:43:04 2009
@@ -1117,7 +1117,7 @@
 				got_cr = 0;
 
 			/* insert a '\r', because we ignored one above */
-			if (have_msg && in_count <= count) {
+			if (have_msg && in_count < count) {
 				in_count++;
 				*buf++ = '\r';
 			}
@@ -1127,7 +1127,7 @@
 		}
 
 		/* store this character, if there is space in the buffer */
-		if (have_msg && in_count <= count) {
+		if (have_msg && in_count < count) {
 			in_count++;
 			*buf++ = c;
 		}




More information about the asterisk-addons-commits mailing list