From c60f52d16b0ad334f401abacd3aa308aae12db2f Mon Sep 17 00:00:00 2001 From: crc <> Date: Wed, 25 Oct 2023 12:20:16 +0000 Subject: [PATCH] fix a bug in retro-muri.c (not using bsd_strlcpy) reported by fangchar in #retro/irc.oftc.net FossilOrigin-Name: 5782053f19d78dfc27bb6b81fb51b89334c2b1eb9e75ff2a1f5fa17e581370f0 --- RELEASE-NOTES | 1 + tools/retro-muri.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0109c52..2fc877b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -26,5 +26,6 @@ - move from interface/ to package/extensions/: double.retro malloc.retro - fix misc. typos +- in retro-muri.c, use bsd_strlcpy (rep. by fangchar) ================================================================ diff --git a/tools/retro-muri.c b/tools/retro-muri.c index be49699..a588d7d 100644 --- a/tools/retro-muri.c +++ b/tools/retro-muri.c @@ -255,10 +255,10 @@ void pass5(char *buffer) { int main(int argc, char **argv) { - strlcpy(code_start, "~~~", 32); - strlcpy(code_end, "~~~", 32); - strlcpy(test_start, "```", 32); - strlcpy(test_end, "```", 32); + bsd_strlcpy(code_start, "~~~", 32); + bsd_strlcpy(code_end, "~~~", 32); + bsd_strlcpy(test_start, "```", 32); + bsd_strlcpy(test_end, "```", 32); np = 0; if (argc > 1) { here = 0; unu(argv[1], 0, &pass1);