diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1997-11-29 14:07:11 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1997-11-29 14:07:11 +0000 |
commit | 7d7f0c7bb1d96c3884a613b413cf0f3cb260ad4c (patch) | |
tree | e01024b33650ac6d1a28b99a5c5050a392f6f63a /kerberosIV/krb/recvauth.c | |
parent | e491b11e001d251c278f33e67670a3c4bfab21c6 (diff) |
fixed the min problem.
Diffstat (limited to 'kerberosIV/krb/recvauth.c')
-rw-r--r-- | kerberosIV/krb/recvauth.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/kerberosIV/krb/recvauth.c b/kerberosIV/krb/recvauth.c index f1286ebe3f6..70e3df67f79 100644 --- a/kerberosIV/krb/recvauth.c +++ b/kerberosIV/krb/recvauth.c @@ -23,6 +23,14 @@ or implied warranty. #include "krb_locl.h" +#ifndef MAX +#define MAX(a,b) (((a)>(b))?(a):(b)) +#endif /* MAX */ + +#ifndef MIN +#define MIN(a,b) (((a)<(b))?(a):(b)) +#endif /* MIN */ + /* * krb_recvauth() reads (and optionally responds to) a message sent * using krb_sendauth(). The "options" argument is a bit-field of @@ -115,7 +123,7 @@ krb_recvauth(int32_t options, /* bit-pattern of options */ char krb_vers[KRB_SENDAUTH_VLEN + 1]; /* + 1 for the null terminator */ int rem; int32_t priv_len; - u_char tmp_buf[MAX_KTXT_LEN+max(KRB_SENDAUTH_VLEN+1,21)]; + u_char tmp_buf[MAX_KTXT_LEN+MAX(KRB_SENDAUTH_VLEN+1,21)]; if (!(options & KOPT_IGNORE_PROTOCOL)) { /* read the protocol version number */ |