src/error.c

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

mercurial