(GetPasswd): cast argument to isprint to unsigned char

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12005 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-04-14 11:16:11 +00:00
parent b1975abfe8
commit f697d47d2f

View File

@@ -759,7 +759,7 @@ GetPasswd(Widget w, XEvent *_event, String *_s, Cardinal *_n)
prompt_x + XTextWidth(font, STRING, echolen),
prompt_y, SPACE_STRING, STRING_LENGTH - echolen + 1);
}
} else if (isprint(c)) {
} else if (isprint((unsigned char)c)) {
if ((cnt + 1) >= MAX_PASSWD_LENGTH)
XBell(dpy, 50);
else