Sign in
llvm
/
llvm-archive
/
a95f55d472d28a35cc4af5df7749473ca38ee187
/
.
/
safecode
/
test
/
cstdlib
/
strcat-004.c
blob: ecff144c5ca06b5de1860d1b500f5c23f6eb2140 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
// Concatenate onto destination buffer that is too short.
#include
<string.h>
int
main
()
{
char
buf
[
1
];
buf
[
0
]
=
'\0'
;
strcat
(
buf
,
"s"
);
return
0
;
}