summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gsmd/atcmd.c3
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
personal git repositories of Harald Welte. Your mileage may vary