summaryrefslogtreecommitdiff
path: root/kerberosIV/krb/get_host.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1997-12-09 14:42:51 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1997-12-09 14:42:51 +0000
commit605e2a5398f3a99bc8aef55f214021ca02c6fa70 (patch)
tree92deabdc8ff826aa304b0b5e0c779bc570d4978c /kerberosIV/krb/get_host.c
parentdcc4baa2fb59bde152ccf6dfafc2d34ff9b4468a (diff)
I just wondered why it said "ud" instead of "udp".
Diffstat (limited to 'kerberosIV/krb/get_host.c')
-rw-r--r--kerberosIV/krb/get_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kerberosIV/krb/get_host.c b/kerberosIV/krb/get_host.c
index 7525df07360..fa13a9b1811 100644
--- a/kerberosIV/krb/get_host.c
+++ b/kerberosIV/krb/get_host.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: get_host.c,v 1.3 1997/12/09 08:12:30 art Exp $ */
+/* $OpenBSD: get_host.c,v 1.4 1997/12/09 14:42:50 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) - 1 ] = '\0';
+ prot[ MIN(p - address, 32-1) ] = '\0';
if((pp = getprotobyname(prot)) != NULL ){
switch(pp->p_proto){
case IPPROTO_UDP: