aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-23 13:50:07 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-23 13:50:07 +0000
commitef553754a401717d380d1ea11177b3efe5d9f7e6 (patch)
tree229d89ae427271ebd195b83a09ce20be027ddf14 /editcap.c
parent8838bfc5ea407cc8354f4e4b0107fe6be2284b52 (diff)
Prohibited APIs: strncpy -> g_strlcpy.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37768 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'editcap.c')
-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;