diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-11-28 20:32:57 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-11-28 20:32:57 (GMT) |
commit | 1ceb5fb946d41a4037cd202db94f2edd78a52258 (patch) | |
tree | ffe8b4e75589c7c201d54d716f78239d71a14938 | |
parent | 23ae9874013d228e1574f12274362c46a227f347 (diff) | |
download | cpython-1ceb5fb946d41a4037cd202db94f2edd78a52258.zip cpython-1ceb5fb946d41a4037cd202db94f2edd78a52258.tar.gz cpython-1ceb5fb946d41a4037cd202db94f2edd78a52258.tar.bz2 |
Repair a botched PyOS_snprintf conversion.
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; |