Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-19 17:55:57 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-03-19 17:55:57 +0000
commit0d69a4aeb077775288ada9cb418993f20a6060e3 (patch)
tree710f118bb28c307c0ca09a0ba16ffdde3050ae02 /lib/libalpm/db.c
parent5dd92d9d521dfd744b17c4ba97a88928ba239a84 (diff)
Removed an hardcoded string length
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;