add some if-braces to keep gcc happy

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5507 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-03-11 13:59:19 +00:00
parent 3e74f54084
commit ec88c17777

View File

@@ -722,12 +722,12 @@ 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(c)) {
if ((cnt + 1) >= MAX_PASSWD_LENGTH)
XBell(dpy, 50);
else
passwd[cnt++] = c;
else
} else
return;
echolen = min(cnt, STRING_LENGTH);
XDrawImageString(dpy, XtWindow(w), gc,