forked from len0rd/rockbox
Some more buffer length fixing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1361 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8c57ad9c38
commit
377725fefe
2 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,7 @@ static DIR opendirs[MAX_OPEN_DIRS];
|
|||
|
||||
DIR* opendir(char* name)
|
||||
{
|
||||
char namecopy[256];
|
||||
char namecopy[MAX_PATH];
|
||||
char* part;
|
||||
char* end;
|
||||
struct fat_direntry entry;
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#define _DIR_H_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "file.h"
|
||||
|
||||
#ifndef DIRENT_DEFINED
|
||||
|
||||
|
@ -31,7 +32,7 @@
|
|||
#define ATTR_ARCHIVE 0x20
|
||||
|
||||
struct dirent {
|
||||
unsigned char d_name[256];
|
||||
unsigned char d_name[MAX_PATH];
|
||||
int attribute;
|
||||
int size;
|
||||
int startcluster;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue