diff --git a/string.c b/string.c index 53b76e3..a07b275 100644 --- a/string.c +++ b/string.c @@ -269,6 +269,7 @@ fn u8 stringDeleteCodepointAtByte(String* s, u32 byte_offset) { } s->length -= 1; } + s->bytes[byte_offset] = '\0'; return cp.size; }