diff options
author | Judd Vinet <judd@archlinux.org> | 2005-12-21 00:59:56 +0100 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-12-21 00:59:56 +0100 |
commit | a074ddb85b4d1f9b90842e5a4f15e2416e3147fe (patch) | |
tree | b57342bd634884d7bb7679eb02e46bedfb2b6708 /src/pacman/download.c | |
parent | 953e7e5d3eea5d4562a8b4cf2cb18d4a71a96ff9 (diff) | |
download | pacman-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.c | 2 |
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(" "); |