can't use /, it is a pathname component separator!
authorJohn Kohl <jtkohl@mit.edu>
Mon, 4 Mar 1991 15:10:02 +0000 (15:10 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 4 Mar 1991 15:10:02 +0000 (15:10 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1844 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/gen_rname.c

index 24c32ef6e1d5662027060dd5a31b4fdf60334f43..2992c714a998cf2fdb6bd7bf26ecdb536de47c98 100644 (file)
@@ -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