Commit 1ceb5fb9 authored by Tim Peters's avatar Tim Peters

Repair a botched PyOS_snprintf conversion.

parent 23ae9874
......@@ -432,7 +432,7 @@ os2_strerror(char *msgbuf, int msgbuflen, int errorcode, char *reason)
if (rc == NO_ERROR)
os2_formatmsg(msgbuf, msglen, reason);
else
PyOS_snprintf(msgbuf, sizeof(msgbuf),
PyOS_snprintf(msgbuf, msgbuflen,
"unknown OS error #%d", errorcode);
return msgbuf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment