summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-08 10:22:44 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-08 10:22:44 +0200
commitc7373142a8955fbfe9eacb204c95da1a96e72b21 (patch)
tree9c92f7d6ecb2be4bd36ec56f5a9183ba74831df4 /src/fat_adv.c
parent40d42f278d7dbf4fe7d7a23a4ca802317bc576a9 (diff)
Fix file copy regression by removing static declaration of file_info_t structure
Diffstat (limited to 'src/fat_adv.c')
-rw-r--r--src/fat_adv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index 1455f59..75e7a17 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -326,7 +326,7 @@ static unsigned int fat32_find_root_cluster(disk_t *disk_car,const partition_t *
#endif
unsigned char *buffer;
int ind_stop=0;
- static file_info_t rootdir_list= {
+ file_info_t rootdir_list= {
.list = TD_LIST_HEAD_INIT(rootdir_list.list),
.name = NULL
};
@@ -373,7 +373,7 @@ static unsigned int fat32_find_root_cluster(disk_t *disk_car,const partition_t *
(buffer[1*0x20+0xB]!=ATTR_EXT && (buffer[1*0x20+0xB]&ATTR_DIR)!=0) && (cluster==0)
&& (buffer[0x40]!=0)) /* First-level directory */
{
- static file_info_t dir_list = {
+ file_info_t dir_list = {
.list = TD_LIST_HEAD_INIT(dir_list.list),
.name = NULL
};
@@ -504,7 +504,7 @@ static unsigned int fat32_find_root_cluster(disk_t *disk_car,const partition_t *
}
}
{
- static file_info_t dir_list = {
+ file_info_t dir_list = {
.list = TD_LIST_HEAD_INIT(dir_list.list),
.name = NULL
};
@@ -821,7 +821,7 @@ static int analyse_dir_entries2(disk_t *disk_car,const partition_t *partition, c
{
unsigned char *buffer_dir;
unsigned int root_dir_size;
- static file_info_t dir_list = {
+ file_info_t dir_list = {
.list = TD_LIST_HEAD_INIT(dir_list.list),
.name = NULL
};