Repair a botched PyOS_snprintf conversion.

This commit is contained in:
Tim Peters 2001-11-28 20:32:57 +00:00
parent 23ae987401
commit 1ceb5fb946

View file

@ -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;