Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/server.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-29 12:03:09 -0400
committerDan McGee <dan@archlinux.org>2007-04-29 12:03:09 -0400
commita58e17a1d7a9901bb32277c9aed7edded3501767 (patch)
tree25209ab6fcfb551da7d55ee9a1e8e0c235511e2d /lib/libalpm/server.c
parentea327cab843397a5727a8a0dd560aab8e0975df6 (diff)
Remove STRNCPY macro from libalpm
Replaced calls to the STRNCPY macro with the actual strncpy function, and pacman passes all pactests. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/server.c')
-rw-r--r--lib/libalpm/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c
index 1b629a81..c34c9215 100644
--- a/lib/libalpm/server.c
+++ b/lib/libalpm/server.c
@@ -197,7 +197,7 @@ int _alpm_downloadfiles_forreal(alpm_list_t *servers, const char *localpath,
}
if(!strlen(pkgname)) {
/* just use the raw filename if we can't find crap */
- STRNCPY(pkgname, fn, PKG_NAME_LEN+1);
+ strncpy(pkgname, fn, PKG_NAME_LEN);
}
_alpm_log(PM_LOG_DEBUG, _("using '%s' for download progress"), pkgname);