Removed an hardcoded string length

This commit is contained in:
Aurelien Foret 2005-03-19 17:55:57 +00:00
parent 5dd92d9d52
commit 0d69a4aeb0
1 changed files with 1 additions and 1 deletions

View File

@ -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;