summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/db.c')
-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;