fixed
This commit is contained in:
parent
57e466888a
commit
4d278767ef
|
@ -67,6 +67,7 @@ struct d_node *stat_file(char *filename, int lfile) {
|
|||
return file;
|
||||
}
|
||||
|
||||
/* Busybox code */
|
||||
struct d_node **list(const char *path, size_t *nfiles, int *ret) {
|
||||
DIR *dp = opendir(path);
|
||||
if (dp == NULL) {
|
||||
|
@ -109,7 +110,7 @@ struct d_node **list(const char *path, size_t *nfiles, int *ret) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
for (int i = 0; i < *nfiles; i++) {
|
||||
for (size_t i = 0; i < *nfiles; i++) {
|
||||
dir[i] = dn;
|
||||
dn = dn->next;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue