diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-06-23 13:50:07 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-06-23 13:50:07 +0000 |
commit | ef553754a401717d380d1ea11177b3efe5d9f7e6 (patch) | |
tree | 229d89ae427271ebd195b83a09ce20be027ddf14 /editcap.c | |
parent | 8838bfc5ea407cc8354f4e4b0107fe6be2284b52 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |