summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-18 21:49:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-18 21:49:53 (GMT)
commit81bf66b760b8bbb3673e0f0cbc559671c049fc78 (patch)
treea87c3b143c206c1aa3d919018b1add214771ecea
parentd01a3faa507cc06bd50889487ebab59f81702aa1 (diff)
parentace5707a803eda0f1dde3d776dc3729d3bc7759a (diff)
downloadgit-81bf66b760b8bbb3673e0f0cbc559671c049fc78.zip
git-81bf66b760b8bbb3673e0f0cbc559671c049fc78.tar.gz
git-81bf66b760b8bbb3673e0f0cbc559671c049fc78.tar.bz2
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 28f5937..447af24 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