# HG changeset patch # User Augie Fackler # Date 2016-03-20 00:49:02 # Node ID adda6dee600e0fe618152cc240d5b89697cef201 # Parent d3990da5163799db2b26b27956cb366c5a070d28 check-code: also ban strcat We're not using it now, so it's easy to ban. diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -360,6 +360,7 @@ cpats = [ (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 []