Fixed #92
This commit is contained in:
parent
f1b82ee041
commit
91e2dac3d9
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ int my_readdir (struct my_opendir_s *mod, char* name)
|
|||
de = readdir((DIR *) mod->h);
|
||||
if(de == 0)
|
||||
return 0;
|
||||
strncpy(name, de->d_name, MAX_PATH);
|
||||
strncpy(name, de->d_name, sizeof de->d_name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue