index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-04-29 12:03:09 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-29 12:03:09 -0400 |
commit | a58e17a1d7a9901bb32277c9aed7edded3501767 (patch) | |
tree | 25209ab6fcfb551da7d55ee9a1e8e0c235511e2d /lib/libalpm/server.c | |
parent | ea327cab843397a5727a8a0dd560aab8e0975df6 (diff) |
-rw-r--r-- | lib/libalpm/server.c | 2 |
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); |