summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-19 18:55:57 +0100
committerAurelien Foret <aurelien@archlinux.org>2005-03-19 18:55:57 +0100
commit0d69a4aeb077775288ada9cb418993f20a6060e3 (patch)
tree710f118bb28c307c0ca09a0ba16ffdde3050ae02 /lib/libalpm
parent5dd92d9d521dfd744b17c4ba97a88928ba239a84 (diff)
downloadpacman-0d69a4aeb077775288ada9cb418993f20a6060e3.tar.gz
pacman-0d69a4aeb077775288ada9cb418993f20a6060e3.tar.xz
Removed an hardcoded string length
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 47cdec8c..922aeaea 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -143,7 +143,7 @@ pmpkg_t *db_scan(pmdb_t *db, char *target, unsigned int inforeq)
struct dirent *ent = NULL;
struct stat sbuf;
char path[PATH_MAX];
- char name[256];
+ char name[PKG_NAME_LEN+PKG_VERSION_LEN];
char *ptr = NULL;
int ret, found = 0;
pmpkg_t *pkg;