aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index bbd81f08b9..8481e73673 100644
--- a/editcap.c
+++ b/editcap.c
@@ -1428,7 +1428,7 @@ main(int argc, char *argv[])
if (err_type < ERR_WT_FMT) {
if ((unsigned int)i < phdr->caplen - 2)
- strncpy((char*) &buf[i], "%s", 2);
+ g_strlcpy((char*) &buf[i], "%s", 2);
err_type = ERR_WT_TOTAL;
} else {
err_type -= ERR_WT_FMT;