mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 09:04:55 +00:00
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:
parent
53aa4e3132
commit
302114db36
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue