changeset 28595:adda6dee600e

check-code: also ban strcat We're not using it now, so it's easy to ban.
author Augie Fackler <augie@google.com>
date Sat, 19 Mar 2016 20:49:02 -0400
parents d3990da51637
children 9949950664cd
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Sat Mar 19 20:18:38 2016 -0400
+++ b/contrib/check-code.py	Sat Mar 19 20:49:02 2016 -0400
@@ -360,6 +360,7 @@
     (r'[^\n]\Z', "no trailing newline"),
     (r'^\s*#import\b', "use only #include in standard C code"),
     (r'strcpy\(', "don't use strcpy, use strlcpy or memcpy"),
+    (r'strcat\(', "don't use strcat"),
   ],
   # warnings
   []