use pkgconf_strlcpy #185
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue