repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git]
/
memcheck
/
tests
/
bug401284.c
blob
33151bed7da323b57383add4ccb4eac6f6a5be82
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
4
5
int
main
(
int
argc
,
char
*
argv
[])
6
{
7
size_t
len
=
strlen
(
argv
[
1
]);
8
char
*
buf
=
malloc
(
2
*
len
+
1
);
9
memcpy
(
buf
,
argv
[
1
],
len
+
1
);
10
strncat
(
buf
+
len
,
buf
,
len
);
11
printf
(
"%s
\n
"
,
buf
);
12
free
(
buf
);
13
return
0
;
14
}