Skip to content

Commit 81bf66b

Browse files
committed
Merge branch 'ew/ban-strncat'
The "strncat()" function is now among the banned functions. * ew/ban-strncat: banned.h: mark strncat() as banned
2 parents d01a3fa + ace5707 commit 81bf66b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

banned.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#define strcat(x,y) BANNED(strcat)
1717
#undef strncpy
1818
#define strncpy(x,y,n) BANNED(strncpy)
19+
#undef strncat
20+
#define strncat(x,y,n) BANNED(strncat)
1921

2022
#undef sprintf
2123
#undef vsprintf

0 commit comments

Comments
 (0)