From: John Kohl Date: Mon, 4 Mar 1991 15:10:02 +0000 (+0000) Subject: can't use /, it is a pathname component separator! X-Git-Tag: krb5-1.0-alpha4~128 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=77e7b0dd092a29367fd2d451dcbdbc777047be60;p=krb5.git can't use /, it is a pathname component separator! git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1844 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/gen_rname.c b/src/lib/krb5/os/gen_rname.c index 24c32ef6e..2992c714a 100644 --- a/src/lib/krb5/os/gen_rname.c +++ b/src/lib/krb5/os/gen_rname.c @@ -48,11 +48,11 @@ char **string; tmp = inet_ntoa(inaddr); tmp2 = malloc(strlen(uniq)+strlen(tmp)+1+1+5); /* 1 for NUL, - 1 for /, + 1 for ,, 5 for digits (65535 is max) */ if (!tmp2) return ENOMEM; - (void) sprintf(tmp2, "%s%s/%u",uniq,tmp,ntohs(port)); + (void) sprintf(tmp2, "%s%s,%u",uniq,tmp,ntohs(port)); *string = tmp2; return 0; #else