diff options
author | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-02-13 03:48:28 +0000 |
---|---|---|
committer | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-02-13 03:48:28 +0000 |
commit | bf667e7e9c45b0b0c3787c1023c3b0f6de284cd8 (patch) | |
tree | 24247ed5e688cce25b01144a04ceeb1f98dfdea4 /src/gsmd/gsmd.c | |
parent | fb0265f553ca0efe8aac0f10de480bffeff1a33d (diff) |
gsmd: add strlcpy, strlcat functions (Paulius Zaleckas)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4060 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/gsmd/gsmd.c')
-rw-r--r-- | src/gsmd/gsmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsmd/gsmd.c b/src/gsmd/gsmd.c index c11e59f..af6c4a3 100644 --- a/src/gsmd/gsmd.c +++ b/src/gsmd/gsmd.c @@ -152,7 +152,7 @@ static int gsmd_get_imsi_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp) struct gsmd *g = ctx; DEBUGP("imsi : %s\n", resp); - strcpy(g->imsi, resp); + strlcpy(g->imsi, resp, sizeof(g->imsi)); return 0; } |