imemdup: use memcpy - teed - A multiplex relay tee(1) daemon. Err bitreich.org 70
hgit clone git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed URL:git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed bitreich.org 70
1Log /scm/teed/log.gph bitreich.org 70
1Files /scm/teed/files.gph bitreich.org 70
1Refs /scm/teed/refs.gph bitreich.org 70
1Tags /scm/teed/tag bitreich.org 70
1README /scm/teed/file/README.md.gph bitreich.org 70
1LICENSE /scm/teed/file/LICENSE.gph bitreich.org 70
i--- Err bitreich.org 70
1commit 18db7808b4a41155537b83db1294720403990b4c /scm/teed/commit/18db7808b4a41155537b83db1294720403990b4c.gph bitreich.org 70
1parent 66db6db25fc61d5f44642b2558b9f9b1dcffdab2 /scm/teed/commit/66db6db25fc61d5f44642b2558b9f9b1dcffdab2.gph bitreich.org 70
hAuthor: Hiltjo Posthuma <hiltjo@codemadness.org> URL:mailto:hiltjo@codemadness.org bitreich.org 70
iDate: Mon, 14 Aug 2023 14:20:34 +0200 Err bitreich.org 70
i Err bitreich.org 70
imemdup: use memcpy Err bitreich.org 70
i Err bitreich.org 70
iNo memmove needed, because allocated memory cannot overlap. Err bitreich.org 70
i Err bitreich.org 70
iSigned-off-by: Christoph Lohmann <20h@r-36.net> Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i M teed.c | 2 +- Err bitreich.org 70
i Err bitreich.org 70
i1 file changed, 1 insertion(+), 1 deletion(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/teed.c b/teed.c /scm/teed/file/teed.c.gph bitreich.org 70
i@@ -24,7 +24,7 @@ memdup(void *p, int l) Err bitreich.org 70
i perror("calloc"); Err bitreich.org 70
i exit(1); Err bitreich.org 70
i } Err bitreich.org 70
i- memmove(ret, p, l); Err bitreich.org 70
i+ memcpy(ret, p, l); Err bitreich.org 70
i Err bitreich.org 70
i return (void *)ret; Err bitreich.org 70
i } Err bitreich.org 70
.
Response:
text/plain