From 0d69a4aeb077775288ada9cb418993f20a6060e3 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sat, 19 Mar 2005 17:55:57 +0000 Subject: Removed an hardcoded string length --- lib/libalpm/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2