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.
pull/809/merge
Victor Julien 12 years ago
parent 717c271e58
commit 385c04164b

@ -1,5 +1,5 @@
@banned@
identifier func =~ "^(sprintf|strcat|strcpy|strncpy|strncat)$";
identifier func =~ "^(sprintf|strcat|strcpy|strncpy|strncat|strndup|strchrdup)$";
position p1;
@@

Loading…
Cancel
Save