1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

Removed an hardcoded string length

This commit is contained in:
Aurelien Foret 2005-03-19 17:55:57 +00:00
parent 5dd92d9d52
commit 0d69a4aeb0

View File

@ -143,7 +143,7 @@ pmpkg_t *db_scan(pmdb_t *db, char *target, unsigned int inforeq)
struct dirent *ent = NULL; struct dirent *ent = NULL;
struct stat sbuf; struct stat sbuf;
char path[PATH_MAX]; char path[PATH_MAX];
char name[256]; char name[PKG_NAME_LEN+PKG_VERSION_LEN];
char *ptr = NULL; char *ptr = NULL;
int ret, found = 0; int ret, found = 0;
pmpkg_t *pkg; pmpkg_t *pkg;