mirror of
https://git.sr.ht/~crc_/retroforth
synced 2024-11-16 19:48:56 +01:00
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:
parent
1e131285b3
commit
c60f52d16b
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
||||
================================================================
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue