Sign in
llvm
/
llvm-archive
/
f91d1660b4827134c7666ae9637f21a2741d183f
/
.
/
safecode
/
test
/
mem_safety
/
stdlib
/
stdlib-023.c
blob: b976db53cbf156ee3d923782825ea6ef8fc64a9c [
file
] [
log
] [
blame
]
/* strncat() with small buffer */
#include
<string.h>
int
main
()
{
char
buf
[
1
];
buf
[
0
]
=
'\0'
;
strncat
(
buf
,
"ab"
,
2
);
return
0
;
}