main: use pkgconf_ namespaced strlcpy/strlcat stubs

pull/100/head
William Pitcock 2016-12-10 16:22:16 -06:00
parent b0c821af5c
commit d58ac74669
1 changed files with 3 additions and 3 deletions

6
main.c
View File

@ -343,12 +343,12 @@ print_variable(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data, unsigne
{ {
if (*(req->buf) == '\0') if (*(req->buf) == '\0')
{ {
strlcpy(req->buf, var, sizeof(req->buf)); pkgconf_strlcpy(req->buf, var, sizeof(req->buf));
return; return;
} }
strlcat(req->buf, " ", sizeof(req->buf)); pkgconf_strlcat(req->buf, " ", sizeof(req->buf));
strlcat(req->buf, var, sizeof(req->buf)); pkgconf_strlcat(req->buf, var, sizeof(req->buf));
} }
} }