diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 5d1e8070c..d5f55f733 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -77,7 +77,7 @@ rm -f whitespace.log echo -n "Checking for use of forbidden library functions..." -git grep --line-number -w '\(strncpy\|strcpy\|sprintf\|vsprintf\)' -- './*.c' ':!lib/vhost/rte_vhost*/**' > badfunc.log || true +git grep --line-number -w '\(strncpy\|strcpy\|strcat\|sprintf\|vsprintf\)' -- './*.c' ':!lib/vhost/rte_vhost*/**' > badfunc.log || true if [ -s badfunc.log ]; then echo " Forbidden library functions detected" cat badfunc.log