check-code: also ban strcat
authorAugie Fackler <augie@google.com>
Sat, 19 Mar 2016 20:49:02 -0400
changeset 28595 adda6dee600e
parent 28594 d3990da51637
child 28596 9949950664cd
check-code: also ban strcat We're not using it now, so it's easy to ban.
contrib/check-code.py
--- 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
   []