From a074ddb85b4d1f9b90842e5a4f15e2416e3147fe Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Tue, 20 Dec 2005 23:59:56 +0000 Subject: VMiklos: add STRNCPY macro from alpm to pacman --- src/pacman/download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pacman/download.c') diff --git a/src/pacman/download.c b/src/pacman/download.c index 4cd1596a..b7799f43 100644 --- a/src/pacman/download.c +++ b/src/pacman/download.c @@ -451,7 +451,7 @@ int downloadfiles_forreal(list_t *servers, const char *localpath, if(!strcmp(server->protocol, "file")) { char out[56]; printf(" %s [", sync_fnm); - strncpy(out, server->path, 33); + STRNCPY(out, server->path, 33); printf("%s", out); for(j = strlen(out); j < maxcols-64; j++) { printf(" "); -- cgit v1.2.3