* RealmsConfig-glue.c (krb_get_admhst): Use strcpy instead of
strncpy, and max length of MAX_HSTNM.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15134
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-01-27 Ken Raeburn <raeburn@mit.edu>
+
+ * RealmsConfig-glue.c (krb_get_admhst): Use strcpy instead of
+ strncpy, and max length of MAX_HSTNM.
+
2003-01-15 Ken Raeburn <raeburn@mit.edu>
* sendauth.c (krb_net_rd_sendauth): Arg raw_len now points to
i++;
}
fclose(cnffile);
- if (result == KSUCCESS && strlen(thost) < MAXHOSTNAMELEN)
- strncpy(host, thost, MAXHOSTNAMELEN);
+ if (result == KSUCCESS && strlen(thost) < MAX_HSTNM)
+ strcpy(host, thost);
else
result = KFAILURE;
return result;