diff options
Diffstat (limited to 'src/lib/krb5/krb/parse.c')
-rw-r--r-- | src/lib/krb5/krb/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/parse.c b/src/lib/krb5/krb/parse.c index fbcc49db0d..c6b1f6ebe6 100644 --- a/src/lib/krb5/krb/parse.c +++ b/src/lib/krb5/krb/parse.c @@ -270,7 +270,7 @@ krb5_parse_name(krb5_context context, const char *name, krb5_principal *nprincip } *q++ = '\0'; if (!parsed_realm) - strcpy(krb5_princ_realm(context, principal)->data, default_realm); + strlcpy(krb5_princ_realm(context, principal)->data, default_realm, realmsize + 1); /* * Alright, we're done. Now stuff a pointer to this monstrosity * into the return variable, and let's get out of here. |