fix a bug in retro-muri.c (not using bsd_strlcpy) reported by fangchar in #retro/irc.oftc.net

FossilOrigin-Name: 5782053f19d78dfc27bb6b81fb51b89334c2b1eb9e75ff2a1f5fa17e581370f0
This commit is contained in:
crc 2023-10-25 12:20:16 +00:00
parent 1e131285b3
commit c60f52d16b
2 changed files with 5 additions and 4 deletions

View file

@ -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)
================================================================

View file

@ -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);