fix(userspace/libc): fix puts() in interpreter

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2025-03-07 02:09:16 +00:00
parent 1ff62e22bf
commit 45d34c688f
No known key found for this signature in database
GPG Key ID: 2EE20AF089811A5A

View File

@ -76,7 +76,7 @@ int puts(const char *s)
int len = strlen(s);
memcpy(print_buffer + print_buffer_offset, s, len);
print_buffer_offset += len;
print_buffer[print_buffer_offset++] = '\0';
print_buffer[print_buffer_offset++] = '\n';
flush_buffer();
return len + 1;
}