r4066 - trunk/src/target/gsm/src/gsmd
erin_yueh at sita.openmoko.org
erin_yueh at sita.openmoko.org
Fri Feb 15 08:23:22 CET 2008
Author: erin_yueh
Date: 2008-02-15 08:23:19 +0100 (Fri, 15 Feb 2008)
New Revision: 4066
Modified:
trunk/src/target/gsm/src/gsmd/atcmd.c
Log:
gsmd: bug fixed for atcmd buffer lengh (Erin Yueh)
Modified: trunk/src/target/gsm/src/gsmd/atcmd.c
===================================================================
--- trunk/src/target/gsm/src/gsmd/atcmd.c 2008-02-15 03:34:21 UTC (rev 4065)
+++ trunk/src/target/gsm/src/gsmd/atcmd.c 2008-02-15 07:23:19 UTC (rev 4066)
@@ -619,8 +619,7 @@
atcmd->cb = cb;
atcmd->resp = NULL;
atcmd->timeout = NULL;
- strlcpy(atcmd->buf, cmd, buflen);
-
+ strncpy(atcmd->buf, cmd, buflen-1);
if (!ct)
atcmd->create_timer_func = discard_timer;
else
More information about the commitlog
mailing list