summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-12-19 06:05:18 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-12-19 06:05:18 (GMT)
commit30b5c5d0116f8e670a6ca74dcb6bd076a919d681 (patch)
tree20c3e7e3ec210387941f3e9ac930537f71410a09 /Modules/posixmodule.c
parent5d0ad50f5acf84f2e8a1ca5c6951f333aef0e25a (diff)
downloadcpython-30b5c5d0116f8e670a6ca74dcb6bd076a919d681.zip
cpython-30b5c5d0116f8e670a6ca74dcb6bd076a919d681.tar.gz
cpython-30b5c5d0116f8e670a6ca74dcb6bd076a919d681.tar.bz2
Fix SF bug #1072182, problems with signed characters.
Most of these can be backported.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index a08058f..b783573 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -463,7 +463,7 @@ os2_formatmsg(char *msgbuf, int msglen, char *reason)
if (strlen(msgbuf) > 0) { /* If Non-Empty Msg, Trim CRLF */
char *lastc = &msgbuf[ strlen(msgbuf)-1 ];
- while (lastc > msgbuf && isspace(*lastc))
+ while (lastc > msgbuf && isspace(Py_CHARMASK(*lastc)))
*lastc-- = '\0'; /* Trim Trailing Whitespace (CRLF) */
}