[svn-commits] mnicholson: branch mnicholson/chan-mobile-refactor r742 - /team/mnicholson/ch...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jan 26 11:27:49 CST 2009


Author: mnicholson
Date: Mon Jan 26 11:27:49 2009
New Revision: 742

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=742
Log:
more rfcomm_read() fixes

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=742&r1=741&r2=742
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Mon Jan 26 11:27:49 2009
@@ -1080,7 +1080,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';
 			}
@@ -1090,7 +1090,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 svn-commits mailing list