r3556 - trunk/src/target/gsm/src/libgsmd
tick at sita.openmoko.org
tick at sita.openmoko.org
Tue Dec 4 08:17:20 CET 2007
Author: tick
Date: 2007-12-04 08:17:13 +0100 (Tue, 04 Dec 2007)
New Revision: 3556
Modified:
trunk/src/target/gsm/src/libgsmd/libgsmd_passthrough.c
Log:
gsmd: libgsmd-tool will crash under atcmd mode (sean_chiang)
Modified: trunk/src/target/gsm/src/libgsmd/libgsmd_passthrough.c
===================================================================
--- trunk/src/target/gsm/src/libgsmd/libgsmd_passthrough.c 2007-12-04 03:17:20 UTC (rev 3555)
+++ trunk/src/target/gsm/src/libgsmd/libgsmd_passthrough.c 2007-12-04 07:17:13 UTC (rev 3556)
@@ -83,7 +83,7 @@
if (rc < sizeof(*rgmh) + rgmh->len)
return -EINVAL;
- rx[*--rx_len] = 0;
+ rx[(*rx_len)-1] = 0;
if (rgmh->len < *rx_len)
*rx_len = rgmh->len;
memcpy(rx, rx_buf, *rx_len);
More information about the commitlog
mailing list