NetworkManager r3628 - in trunk: . src



Author: dcbw
Date: Fri May  2 15:59:44 2008
New Revision: 3628
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3628&view=rev

Log:
2008-05-02  Dan Williams  <dcbw redhat com>

	* src/nm-serial-device.c
		- (find_terminator): don't compare the whole line, just the size of the
			terminator, since some modems put stuff after the terminator, like
			"CONNECT 9600"



Modified:
   trunk/ChangeLog
   trunk/src/nm-serial-device.c

Modified: trunk/src/nm-serial-device.c
==============================================================================
--- trunk/src/nm-serial-device.c	(original)
+++ trunk/src/nm-serial-device.c	Fri May  2 15:59:44 2008
@@ -566,7 +566,7 @@
 	int i;
 
 	for (i = 0; terminators[i]; i++) {
-		if (!strcasecmp (line, terminators[i]))
+		if (!strncasecmp (line, terminators[i], strlen (terminators[i])))
 			return TRUE;
 	}
 	return FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]