use pkgconf_strlcpy #185

Merged
plicease merged 1 commits from graham/patch-strlcpy into master 2018-05-29 23:21:17 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ load_personality_with_path(const char *path, const char *triplet)
if (triplet != NULL) if (triplet != NULL)
snprintf(pathbuf, sizeof pathbuf, "%s/%s.personality", path, triplet); snprintf(pathbuf, sizeof pathbuf, "%s/%s.personality", path, triplet);
else else
strlcpy(pathbuf, path, sizeof pathbuf); pkgconf_strlcpy(pathbuf, path, sizeof pathbuf);
f = fopen(pathbuf, "r"); f = fopen(pathbuf, "r");
if (f == NULL) if (f == NULL)