ticket: 1651
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15671
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-07-07 Alexandra Ellwood <lxs@mit.edu>
+
+ * RealmsConfig-glue.c: krb_prof_get_nth() no longer assumes that
+ its retlen argument is correct (call strcpy instead of strncpy)
+ because this argument is a guess for some callers
+ (eg: krb_get_admhst())
+
2003-06-11 Tom Yu <tlyu@mit.edu>
* Makefile.in (KRB_ERR_C): New variable; Darwin needs err_txt.o to
}
if (result == KSUCCESS) {
/* Return error rather than truncating. */
+ /* Don't strncpy because retlen is a guess for some callers */
if (strlen(value) >= retlen)
result = KFAILURE;
else
- strncpy(ret, value, retlen);
+ strcpy(ret, value, retlen);
}
cleanup:
if (name != NULL)