diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1997-12-09 08:12:31 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1997-12-09 08:12:31 +0000 |
commit | 8009bdcf4c83d53d00e6cfcf6b93c5b7c529390c (patch) | |
tree | b5e7e734580f180261058379c3aa30c8c10e63fa /kerberosIV | |
parent | eded21a00a253859f474c1bcca5d418a3c82948f (diff) |
Always those small bugs..
Diffstat (limited to 'kerberosIV')
-rw-r--r-- | kerberosIV/krb/get_host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kerberosIV/krb/get_host.c b/kerberosIV/krb/get_host.c index 519795019b6..7525df07360 100644 --- a/kerberosIV/krb/get_host.c +++ b/kerberosIV/krb/get_host.c @@ -1,4 +1,4 @@ -/* $OpenBSD: get_host.c,v 1.2 1997/12/09 07:57:16 art Exp $ */ +/* $OpenBSD: get_host.c,v 1.3 1997/12/09 08:12:30 art Exp $ */ /* $KTH: get_host.c,v 1.31 1997/09/26 17:42:37 joda Exp $ */ /* @@ -90,7 +90,7 @@ parse_address(char *address, enum krb_host_proto *proto, char **host, int *port) char prot[32]; struct protoent *pp; strncpy(prot, address, MIN(p - address, 32)); - prot[ MIN(p - address, 32) ] = '\0'; + prot[ MIN(p - address, 32) - 1 ] = '\0'; if((pp = getprotobyname(prot)) != NULL ){ switch(pp->p_proto){ case IPPROTO_UDP: |