commit | 1ceb5fb946d41a4037cd202db94f2edd78a52258 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Wed Nov 28 20:32:57 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Wed Nov 28 20:32:57 2001 +0000 |
tree | ffe8b4e75589c7c201d54d716f78239d71a14938 | |
parent | 23ae9874013d228e1574f12274362c46a227f347 [diff] |
Repair a botched PyOS_snprintf conversion.
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 365a836..3340131 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -432,7 +432,7 @@ 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;