src/error.c

changeset 15
362b7659dc76
parent 7
9dd76cbd6c90
child 16
c5dde81b6fb2
--- a/src/error.c	Wed Nov 08 21:53:43 2023 +0100
+++ b/src/error.c	Wed Nov 08 23:17:07 2023 +0100
@@ -43,7 +43,7 @@
     if (text.length == 0) return;
 
     // write error to debug output
-    asc_dprintf("ERROR: %*.s", (int)text.length, text.ptr);
+    asc_dprintf("ERROR: %.*s", (int)text.length, text.ptr);
 
     // write error to buffer
     CxBuffer* buf = &asc_context.error_buffer;

mercurial