diff options
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; |