Added new function krb_err_msg() that should be used instead of
indexing into krb_err_txt[]. The function does a sanity check on the error code. Replaced all occurencies of krb_err_txt[]. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@280 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -620,7 +620,7 @@ GetPasswd(Widget w, XEvent *_event, String *_s, Cardinal *_n)
|
||||
fprintf(stderr,
|
||||
"%s: Warning %s\n",
|
||||
ProgName,
|
||||
krb_err_txt[code]);
|
||||
krb_err_msg(code));
|
||||
}
|
||||
leave();
|
||||
}
|
||||
|
Reference in New Issue
Block a user