summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-01-18 13:49:53 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-01-18 13:49:53 -0800
commit81bf66b760b8bbb3673e0f0cbc559671c049fc78 (patch)
treea87c3b143c206c1aa3d919018b1add214771ecea
parentMerge branch 'ds/commit-graph-assert-missing-parents' (diff)
parentbanned.h: mark strncat() as banned (diff)
downloadtgif-81bf66b760b8bbb3673e0f0cbc559671c049fc78.tar.xz
Merge branch 'ew/ban-strncat'
The "strncat()" function is now among the banned functions. * ew/ban-strncat: banned.h: mark strncat() as banned
-rw-r--r--banned.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/banned.h b/banned.h
index 28f5937035..447af24807 100644
--- a/banned.h
+++ b/banned.h
@@ -16,6 +16,8 @@
#define strcat(x,y) BANNED(strcat)
#undef strncpy
#define strncpy(x,y,n) BANNED(strncpy)
+#undef strncat
+#define strncat(x,y,n) BANNED(strncat)
#undef sprintf
#undef vsprintf