1
0
mirror of https://github.com/janet-lang/janet synced 2026-01-19 09:30:22 +00:00

Fix reference.

This commit is contained in:
Calvin Rose
2026-01-17 07:43:43 -06:00
parent eb825772bb
commit d5a014baff

View File

@@ -1328,7 +1328,7 @@ static Janet os_execute_impl(int32_t argc, Janet *argv, JanetExecuteMode mode) {
msgbuf,
sizeof(msgbuf),
NULL);
if (!*msgbuf) sprintf(msgbuf, "%d", code);
if (!*msgbuf) sprintf(msgbuf, "%d", cp_error_code);
char *c = msgbuf;
while (*c) {
if (*c == '\n' || *c == '\r') {