banned.h: mark strncat() as banned

strncat() has the same quadratic behavior as strcat() and is difficult-to-read and bug-prone. While it hasn't yet been a problem in git iself, strncat() found it's way into 'master' of cgit and caused segfaults on my system. Signed-off-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Eric Wong committed Jan 2, 2019 at 09:38 UTC ace5707a803eda0f1dde3d776dc3729d3bc7759a
1 file changed +2
banned.h
+2
@@ -16,6 +16,8 @@
16 #define strcat(x,y) BANNED(strcat)
17 #undef strncpy
18 #define strncpy(x,y,n) BANNED(strncpy)
19 +#undef strncat
20 +#define strncat(x,y,n) BANNED(strncat)
21
22 #undef sprintf
23 #undef vsprintf