mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 15:12:30 -05:00
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)
|
DIR* opendir(char* name)
|
||||||
{
|
{
|
||||||
char namecopy[256];
|
char namecopy[MAX_PATH];
|
||||||
char* part;
|
char* part;
|
||||||
char* end;
|
char* end;
|
||||||
struct fat_direntry entry;
|
struct fat_direntry entry;
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#define _DIR_H_
|
#define _DIR_H_
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include "file.h"
|
||||||
|
|
||||||
#ifndef DIRENT_DEFINED
|
#ifndef DIRENT_DEFINED
|
||||||
|
|
||||||
|
|
@ -31,7 +32,7 @@
|
||||||
#define ATTR_ARCHIVE 0x20
|
#define ATTR_ARCHIVE 0x20
|
||||||
|
|
||||||
struct dirent {
|
struct dirent {
|
||||||
unsigned char d_name[256];
|
unsigned char d_name[MAX_PATH];
|
||||||
int attribute;
|
int attribute;
|
||||||
int size;
|
int size;
|
||||||
int startcluster;
|
int startcluster;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue