diff options
author | Ezra Peisach <epeisach@mit.edu> | 2000-10-17 23:01:33 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2000-10-17 23:01:33 +0000 |
commit | b96606c107b3021f71c0f97062a2f317e19c1286 (patch) | |
tree | f174090fc6403c87ab55edde05e21af547ef67de /src/lib/krb5/os/locate_kdc.c | |
parent | 773b682dfda7919d3e2cdfb7bddd54d831e4dc1d (diff) | |
download | krb5-b96606c107b3021f71c0f97062a2f317e19c1286.tar.gz krb5-b96606c107b3021f71c0f97062a2f317e19c1286.tar.xz krb5-b96606c107b3021f71c0f97062a2f317e19c1286.zip |
* changepw.c: Cast length argument to recvfrom/sendto to int
* os-proto.h: Moved extern definition of krb5_max_dgram_size,
krb5_max_skdc_timeout, krb5_skdc_timeout_shift,
krb5_skdc_timeout_1 here.
* accessor.c: Definition for krb5_max_dgram_size,
krb5_max_skdc_timeout, krb5_skdc_timeout_shift,
krb5_skdc_timeout_1 moved to os-proto.h
* osconfig.c: Changed definition for krb5_max_dgram_size,
krb5_max_skdc_timeout, krb5_skdc_timeout_shift,
krb5_skdc_timeout_1 to unsigned int.
* get_krbhst.c, init_os_context.c, locate_kdc.c, prompter.c:
Unsigned/signed int cleanup.
* read_pwd.c (krb5_read_password): Change size_return to unsigned
int *.
* sendto_kdc.c: Remove definition for krb5_max_dgram_size,
krb5_max_skdc_timeout, krb5_skdc_timeout_shift,
krb5_skdc_timeout_1. (moved to os-proto.h). Cast arguments to int
for send() and recv().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12783 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/os/locate_kdc.c')
-rw-r--r-- | src/lib/krb5/os/locate_kdc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index bae1523a46..91e12b19d0 100644 --- a/src/lib/krb5/os/locate_kdc.c +++ b/src/lib/krb5/os/locate_kdc.c @@ -386,7 +386,7 @@ krb5_locate_srv_dns(realm, service, protocol, addr_pp, naddrs) if ( strlen(service) + strlen(protocol) + realm->length + 6 > MAX_DNS_NAMELEN ) goto out; - sprintf(host, "%s.%s.%.*s", service, protocol, realm->length, + sprintf(host, "%s.%s.%.*s", service, protocol, (int) realm->length, realm->data); /* Realm names don't (normally) end with ".", but if the query |