Revision 6265eb26 block/vvfat.c
b/block/vvfat.c | ||
---|---|---|
883 | 883 |
mapping->dir_index = 0; |
884 | 884 |
mapping->info.dir.parent_mapping_index = -1; |
885 | 885 |
mapping->first_mapping_index = -1; |
886 |
mapping->path = strdup(dirname); |
|
886 |
mapping->path = qemu_strdup(dirname);
|
|
887 | 887 |
i = strlen(mapping->path); |
888 | 888 |
if (i > 0 && mapping->path[i - 1] == '/') |
889 | 889 |
mapping->path[i - 1] = '\0'; |
... | ... | |
1633 | 1633 |
|
1634 | 1634 |
/* rename */ |
1635 | 1635 |
if (strcmp(basename, basename2)) |
1636 |
schedule_rename(s, cluster_num, strdup(path)); |
|
1636 |
schedule_rename(s, cluster_num, qemu_strdup(path));
|
|
1637 | 1637 |
} else if (is_file(direntry)) |
1638 | 1638 |
/* new file */ |
1639 |
schedule_new_file(s, strdup(path), cluster_num); |
|
1639 |
schedule_new_file(s, qemu_strdup(path), cluster_num);
|
|
1640 | 1640 |
else { |
1641 | 1641 |
assert(0); |
1642 | 1642 |
return 0; |
... | ... | |
1753 | 1753 |
mapping->mode &= ~MODE_DELETED; |
1754 | 1754 |
|
1755 | 1755 |
if (strcmp(basename, basename2)) |
1756 |
schedule_rename(s, cluster_num, strdup(path)); |
|
1756 |
schedule_rename(s, cluster_num, qemu_strdup(path));
|
|
1757 | 1757 |
} else |
1758 | 1758 |
/* new directory */ |
1759 |
schedule_mkdir(s, cluster_num, strdup(path)); |
|
1759 |
schedule_mkdir(s, cluster_num, qemu_strdup(path));
|
|
1760 | 1760 |
|
1761 | 1761 |
lfn_init(&lfn); |
1762 | 1762 |
do { |
Also available in: Unified diff