From 385c04164b7df5ab5dadcbeac4c6afd0a022fa5b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 31 Jan 2014 12:53:26 +0100 Subject: [PATCH] Updated banned function cocci check Added: strndup and strchrnul Both are not supported on OS X 10.6. It's rather old, but it's the only Mac QA box I have, so for now it'll have to do. --- qa/coccinelle/banned-functions.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/coccinelle/banned-functions.cocci b/qa/coccinelle/banned-functions.cocci index 03f3438536..82d116b089 100644 --- a/qa/coccinelle/banned-functions.cocci +++ b/qa/coccinelle/banned-functions.cocci @@ -1,5 +1,5 @@ @banned@ -identifier func =~ "^(sprintf|strcat|strcpy|strncpy|strncat)$"; +identifier func =~ "^(sprintf|strcat|strcpy|strncpy|strncat|strndup|strchrdup)$"; position p1; @@