mirror of
https://github.com/python/cpython.git
synced 2025-11-08 13:42:22 +00:00
Repair a botched PyOS_snprintf conversion.
This commit is contained in:
parent
23ae987401
commit
1ceb5fb946
1 changed files with 1 additions and 1 deletions
|
|
@ -432,7 +432,7 @@ os2_strerror(char *msgbuf, int msgbuflen, int errorcode, char *reason)
|
||||||
if (rc == NO_ERROR)
|
if (rc == NO_ERROR)
|
||||||
os2_formatmsg(msgbuf, msglen, reason);
|
os2_formatmsg(msgbuf, msglen, reason);
|
||||||
else
|
else
|
||||||
PyOS_snprintf(msgbuf, sizeof(msgbuf),
|
PyOS_snprintf(msgbuf, msgbuflen,
|
||||||
"unknown OS error #%d", errorcode);
|
"unknown OS error #%d", errorcode);
|
||||||
|
|
||||||
return msgbuf;
|
return msgbuf;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue