mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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)
|
||||
os2_formatmsg(msgbuf, msglen, reason);
|
||||
else
|
||||
PyOS_snprintf(msgbuf, sizeof(msgbuf),
|
||||
PyOS_snprintf(msgbuf, msgbuflen,
|
||||
"unknown OS error #%d", errorcode);
|
||||
|
||||
return msgbuf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue