[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-39
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-397-g7daa85a |
Date: |
Wed, 04 Apr 2012 13:35:32 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via 7daa85a38101cc7f118e0b287403fc8b36fdac75 (commit)
from 9bf055d6da0968e2e7129237df4ee7553d1a1165 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=7daa85a38101cc7f118e0b287403fc8b36fdac75
commit 7daa85a38101cc7f118e0b287403fc8b36fdac75
Author: Daniele Forsi <address@hidden>
Date: Wed Apr 4 15:32:31 2012 +0200
Fix off-by-ones
Harmless as long as modems terminate lines with CR+LF, the bug would show
if lines were terminated by CR or by LF alone.
diff --git a/common/links/atbus.c b/common/links/atbus.c
index 843a96b..e035d9f 100644
--- a/common/links/atbus.c
+++ b/common/links/atbus.c
@@ -217,9 +217,9 @@ static void atbus_rx_statemachine(unsigned char rx_char,
struct gn_statemachine
bi->rbuf_pos = 1;
bi->binlen = 1;
if (unsolicited)
- sm_incoming_function(bi->rbuf[0], start, rbuf_pos - 1 -
(start - bi->rbuf), sm);
+ sm_incoming_function(bi->rbuf[0], start, rbuf_pos -
(start - bi->rbuf), sm);
else
- sm_incoming_function(sm->last_msg_type, bi->rbuf,
rbuf_pos - 1, sm);
+ sm_incoming_function(sm->last_msg_type, bi->rbuf,
rbuf_pos, sm);
free(bi->rbuf);
bi->rbuf = NULL;
bi->rbuf_size = 0;
-----------------------------------------------------------------------
Summary of changes:
common/links/atbus.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-397-g7daa85a,
Daniele Forsi <=