diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-at-serial-port.c | 2 | ||||
-rw-r--r-- | src/tests/Makefile.am | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-at-serial-port.c b/src/mm-at-serial-port.c index f49e9f0e..cd4bb133 100644 --- a/src/mm-at-serial-port.c +++ b/src/mm-at-serial-port.c @@ -66,7 +66,7 @@ mm_at_serial_port_remove_echo (GByteArray *response) if (response->len <= 2) return; - for (i = 0; i < (response->len - 2); i++) { + for (i = 0; i < (response->len - 1); i++) { /* If there is any content before the first * <CR><LF>, assume it's echo or garbage, and skip it */ if (response->data[i] == '\r' && response->data[i + 1] == '\n') { diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am index 9fcdd9eb..df7157e4 100644 --- a/src/tests/Makefile.am +++ b/src/tests/Makefile.am @@ -53,7 +53,8 @@ test_at_serial_port_SOURCES = \ test_at_serial_port_CPPFLAGS = \ $(MM_CFLAGS) \ - -I$(top_srcdir) + -I$(top_srcdir) \ + -I$(top_srcdir)/src test_at_serial_port_LDADD = \ $(MM_LIBS) \ |