Removed an hardcoded string length
This commit is contained in:
parent
5dd92d9d52
commit
0d69a4aeb0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue