diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-10-08 23:36:47 +0200 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-10-08 23:36:47 +0200 |
commit | 8ffb82a691d08511e7436ba0f2fc63f8822e9a4e (patch) | |
tree | 5e2c8824daac847d37eaade52b810fa0794710ff /lib/libalpm/add.c | |
parent | 05ab859eab8dbe14f1957d0a4e64b3f005630d45 (diff) | |
download | pacman-8ffb82a691d08511e7436ba0f2fc63f8822e9a4e.tar.gz pacman-8ffb82a691d08511e7436ba0f2fc63f8822e9a4e.tar.xz |
Code update to make use of PKG_FULLNAME_LEN
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r-- | lib/libalpm/add.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 6c6fc6b6..6fcc6442 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -328,8 +328,8 @@ int add_commit(pmtrans_t *trans, pmdb_t *db) oldpkg = pkg_new(); if(oldpkg) { if(!(local->infolevel & INFRQ_FILES)) { - char name[(PKG_NAME_LEN-1)+1+(PKG_VERSION_LEN-1)+1]; - snprintf(name, (PKG_NAME_LEN-1)+1+(PKG_VERSION_LEN-1)+1, "%s-%s", local->name, local->version); + char name[PKG_FULLNAME_LEN]; + snprintf(name, PKG_FULLNAME_LEN, "%s-%s", local->name, local->version); _alpm_log(PM_LOG_DEBUG, "loading FILES info for %s", local->name); db_read(db, name, INFRQ_FILES, local); } |