Browse Source

Fix ad hoc `printf` in test runner signal handler

Feoramund 1 year ago
parent
commit
0ff130d82b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/testing/signal_handler_libc.odin

+ 1 - 1
core/testing/signal_handler_libc.odin

@@ -51,7 +51,7 @@ stop_test_callback :: proc "c" (sig: libc.int) {
 				sigbuf[i] = cast(u8)('0' + m)
 				i -= 1
 			}
-			sigstr = cast(string)sigbuf[i:]
+			sigstr = cast(string)sigbuf[1 + i:len(sigbuf) - 1]
 		}
 
 		advisory_a := `