mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Repair a botched PyOS_snprintf conversion.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user