Sign in
llvm
/
llvm-archive
/
a95f55d472d28a35cc4af5df7749473ca38ee187
/
.
/
safecode
/
test
/
cstdlib
/
strcat-007.c
blob: 5e9ed2e2dbefb9fc151410dabc71869696e1bfb0 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
// Concatenate onto a destination that is too short by one.
#include
<string.h>
int
main
()
{
char
a
[
11
]
=
"the \0string"
;
char
b
[]
=
"strings"
;
strcat
(
a
,
b
);
return
0
;
}