diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-19 18:55:57 +0100 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-19 18:55:57 +0100 |
commit | 0d69a4aeb077775288ada9cb418993f20a6060e3 (patch) | |
tree | 710f118bb28c307c0ca09a0ba16ffdde3050ae02 /lib | |
parent | 5dd92d9d521dfd744b17c4ba97a88928ba239a84 (diff) | |
download | pacman-0d69a4aeb077775288ada9cb418993f20a6060e3.tar.gz pacman-0d69a4aeb077775288ada9cb418993f20a6060e3.tar.xz |
Removed an hardcoded string length
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/db.c | 2 |
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; |