+2003-01-28 Ken Raeburn <raeburn@mit.edu>
+
+ * RealmsConfig-glue.c (get_krbhst_default, krb_get_krbhst):
+ (krb_realmofhost): Use strcpy instead of strncpy.
+
2003-01-27 Ken Raeburn <raeburn@mit.edu>
* RealmsConfig-glue.c (krb_get_admhst): Use strcpy instead of
if (strlen(KRB_HOST) + 1 + strlen(r) >= MAXHOSTNAMELEN)
return KFAILURE;
/* KRB_HOST.REALM (ie. kerberos.CYGNUS.COM) */
- strncpy(h, KRB_HOST, MAXHOSTNAMELEN);
+ strcpy(h, KRB_HOST);
strcat(h, ".");
strcat(h, r);
return KSUCCESS;
}
fclose(cnffile);
if (result == KSUCCESS && strlen(scratch) < MAXHOSTNAMELEN)
- strncpy(host, scratch, MAXHOSTNAMELEN);
+ strcpy(host, scratch);
else
result = KFAILURE;
} while (0);
if (strlen(lhost) >= MAXHOSTNAMELEN)
return realm;
- strncpy(hostname, lhost, MAXHOSTNAMELEN);
+ strcpy(hostname, lhost);
/* Remove possible trailing dot. */
p = strrchr(hostname, '.');