From a58e17a1d7a9901bb32277c9aed7edded3501767 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 29 Apr 2007 12:03:09 -0400 Subject: 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 --- lib/libalpm/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/server.c') 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); -- cgit v1.2.3-54-g00ecf