sim

the sim text editor
git clone git://ssnf.xyz/sim
Log | Files | Refs | README

commit 9d424413ffb6aa49e3af6e0f876b95cc3431ece3
parent f9339e3c9fae919c93fb038608ac3fdee223d6af
Author: ssnf <ssnf@ssnf.xyz>
Date:   Sat, 24 Jun 2023 15:45:46 +0000

str_adds(): actually allocate memory for the last byte

Diffstat:
Msim.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sim.c b/sim.c @@ -1057,7 +1057,7 @@ str_insure(String* p, ulong n) static void str_addc(String* p, int c) { - str_insure(p, p->n + 1); + str_insure(p, p->n + 2); p->s[p->n++] = c; p->s[p->n] = '\0'; }