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/vendor_tihtc.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/vendor_tihtc.c')
-rw-r--r-- | src/gsmd/vendor_tihtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsmd/vendor_tihtc.c b/src/gsmd/vendor_tihtc.c index b7c284c..cf2a3c2 100644 --- a/src/gsmd/vendor_tihtc.c +++ b/src/gsmd/vendor_tihtc.c @@ -85,7 +85,7 @@ static int cpri_parse(const char *buf, int len, const char *param, struct gsmd * char *tok1, *tok2; char tx_buf[20]; - strcpy(tx_buf, buf); + strlcpy(tx_buf, buf, sizeof(tx_buf)); tok1 = strtok(tx_buf, ","); if (!tok1) return -EIO; @@ -132,7 +132,7 @@ static int cpi_parse(const char *buf, int len, const char *param, struct gsmd *g sizeof(*aux)); char tx_buf[64]; - strcpy(tx_buf, buf); + strlcpy(tx_buf, buf, sizeof(tx_buf)); DEBUGP("entering cpi_parse param=`%s'\n", param); if (!ucmd) return -EINVAL; |