mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
Removed an hardcoded string length
This commit is contained in:
parent
5dd92d9d52
commit
0d69a4aeb0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user