summaryrefslogtreecommitdiffstats
path: root/src/pacman/download.c
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-12-21 00:59:56 +0100
committerJudd Vinet <judd@archlinux.org>2005-12-21 00:59:56 +0100
commita074ddb85b4d1f9b90842e5a4f15e2416e3147fe (patch)
treeb57342bd634884d7bb7679eb02e46bedfb2b6708 /src/pacman/download.c
parent953e7e5d3eea5d4562a8b4cf2cb18d4a71a96ff9 (diff)
downloadpacman-a074ddb85b4d1f9b90842e5a4f15e2416e3147fe.tar.gz
pacman-a074ddb85b4d1f9b90842e5a4f15e2416e3147fe.tar.xz
VMiklos: add STRNCPY macro from alpm to pacman
Diffstat (limited to 'src/pacman/download.c')
-rw-r--r--src/pacman/download.c2
1 files changed, 1 insertions, 1 deletions
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(" ");