projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
624f72f
)
Check error(...) and .inc files
author
edwin
<none@none>
Sun, 14 Dec 2003 12:50:38 +0000
(12:50 +0000)
committer
edwin
<none@none>
Sun, 14 Dec 2003 12:50:38 +0000
(12:50 +0000)
contrib/check_dangerous_printf.pl
patch
|
blob
|
history
diff --git
a/contrib/check_dangerous_printf.pl
b/contrib/check_dangerous_printf.pl
index c9ccb403fde8a635178ee5d591871a5b694ac680..2a4d742d7fba7d00ea29a53f68f4c1bde3716d94 100644
(file)
--- a/
contrib/check_dangerous_printf.pl
+++ b/
contrib/check_dangerous_printf.pl
@@
-16,6
+16,7
@@
my @FUNCTIONS =
{NAME => 'printf' ,FORMATPOS => 1},
{NAME => 'sprintf' ,FORMATPOS => 2},
{NAME => 'fprintf' ,FORMATPOS => 2},
+ {NAME => 'error' ,FORMATPOS => 1},
{NAME => 'dolog' ,FORMATPOS => 1},
{NAME => 'dolog_plain',FORMATPOS => 1},
);
@@
-45,6
+46,7
@@
sub prepare
sub wanted
{
push @files, $File::Find::name if /\.[ch]$/i;
+ push @files, $File::Find::name if /\.inc$/i;
}
sub get_args