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"



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3628 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-05-02 15:59:44 +00:00
parent 53aa4e3132
commit 302114db36
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
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"
2008-05-01 Dan Williams <dcbw@redhat.com>
Patch from Michael Biebl <biebl@debian.org>

View file

@ -566,7 +566,7 @@ find_terminator (const char *line, char **terminators)
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;