diff options
author | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-02-15 07:23:19 +0000 |
---|---|---|
committer | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-02-15 07:23:19 +0000 |
commit | cabd52f1f0682bac467126e45b56680936c77e0b (patch) | |
tree | 90ae0cfbc198d1c608f9c09b5a11e4a9bb1de390 | |
parent | 1c587409828af6c310759c4574f3cb73b33f88c0 (diff) |
gsmd: bug fixed for atcmd buffer lengh (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4066 99fdad57-331a-0410-800a-d7fa5415bdb3
-rw-r--r-- | src/gsmd/atcmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gsmd/atcmd.c b/src/gsmd/atcmd.c index 51c1722..cee16f9 100644 --- a/src/gsmd/atcmd.c +++ b/src/gsmd/atcmd.c @@ -619,8 +619,7 @@ struct gsmd_atcmd *atcmd_fill(const char *cmd, int rlen, 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 |