Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ew/ban-strncat'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 18 Jan 2019 21:49:53 +0000
(13:49 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 18 Jan 2019 21:49:53 +0000
(13:49 -0800)
The "strncat()" function is now among the banned functions.
* ew/ban-strncat:
banned.h: mark strncat() as banned
banned.h
patch
|
blob
|
history
raw
(from parent 1:
d01a3fa
)
diff --git
a/banned.h
b/banned.h
index 28f5937035b762ad9fb091ea8fb7cc96f38fc92d..447af24807f49f5df4eace6435acba721745fc2c 100644
(file)
--- 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