Skip to content

Commit f892938

Browse files
author
Daniel Laügt
committed
Fix compilation
1 parent 8da834c commit f892938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/pylifecycle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3399,7 +3399,7 @@ _Py_FatalErrorFormat(const char *func, const char *format, ...)
33993399
char* msg = malloc(length + 1);
34003400

34013401
va_start(vargs, format);
3402-
vsnprintf(text, length + 1, format, vargs);
3402+
vsnprintf(msg, length + 1, format, vargs);
34033403
va_end(vargs);
34043404

34053405
fatal_error(fileno(stderr), func, msg, -1);
@@ -3424,7 +3424,7 @@ Py_ExitStatusException(PyStatus status)
34243424
exit(status.exitcode);
34253425
}
34263426
else if (_PyStatus_IS_ERROR(status)) {
3427-
fatal_error(fileno(stderr), 1, status.func, status.err_msg, 1);
3427+
fatal_error(fileno(stderr), status.func, status.err_msg, 1);
34283428
}
34293429
else {
34303430
Py_FatalError("Py_ExitStatusException() must not be called on success");

0 commit comments

Comments
 (0)