Fix a dumb in buffer_putch.

This commit is contained in:
Andreas Kling 2018-10-17 16:56:47 +02:00
parent 9aa88fe186
commit 8ff394f83f
Notes: sideshowbarker 2024-07-19 18:46:48 +09:00

View file

@ -126,7 +126,7 @@ int kprintf(const char* fmt, ...)
return ret; return ret;
} }
static void buffer_putch(char* bufptr, char ch) static void buffer_putch(char*& bufptr, char ch)
{ {
*bufptr++ = ch; *bufptr++ = ch;
} }