summaryrefslogtreecommitdiff
path: root/src/code/z_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/z_debug.c')
-rw-r--r--src/code/z_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index 8b2a6fe93..c3d4f8cc8 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -67,7 +67,7 @@ void func_8006376C(u8 x, u8 y, u8 colorId, const char* text) {
i = 0;
bufText = buf->text;
- while ((*bufText++ = *text++)) {
+ while ((*bufText++ = *text++) != '\0') {
if (i++ > 0x14) {
break;
}