summaryrefslogtreecommitdiff
path: root/comms/modemd/patches/patch-outgoing_tnstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'comms/modemd/patches/patch-outgoing_tnstate.c')
-rw-r--r--comms/modemd/patches/patch-outgoing_tnstate.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/comms/modemd/patches/patch-outgoing_tnstate.c b/comms/modemd/patches/patch-outgoing_tnstate.c
index 2290a2b242e..d8b60965b24 100644
--- a/comms/modemd/patches/patch-outgoing_tnstate.c
+++ b/comms/modemd/patches/patch-outgoing_tnstate.c
@@ -1,4 +1,4 @@
-$NetBSD: patch-outgoing_tnstate.c,v 1.1 2011/12/19 13:25:22 wiz Exp $
+$NetBSD: patch-outgoing_tnstate.c,v 1.2 2013/09/10 14:15:11 joerg Exp $
Add missing header files (for cleanup()).
@@ -13,3 +13,12 @@ Add missing header files (for cleanup()).
unsigned char doopt[] = { IAC, DO, '%', 'c', 0 };
unsigned char dont[] = { IAC, DONT, '%', 'c', 0 };
+@@ -105,7 +107,7 @@ telrcv()
+ state = TS_DATA;
+ /* Strip off \n or \0 after a \r */
+ if (his_state_is_wont(TELOPT_BINARY)
+- && (c == 0) || (c == '\n')) {
++ && ((c == 0) || (c == '\n'))) {
+ break;
+ }
+ /* FALL THROUGH */