Prohibited APIs: strncpy -> g_strlcpy.

svn path=/trunk/; revision=37768
This commit is contained in:
Stig Bjørlykke 2011-06-23 13:50:07 +00:00
parent 12214c85d0
commit 7da7f34750
1 changed files with 1 additions and 1 deletions

View File

@ -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;