Skip to content

Commit 3229cd7

Browse files
committed
Fix MassStorageCopy issue with double quoted list
'"' strip now Fix #11 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent f16b978 commit 3229cd7

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

linux/massStorageCopy

0 Bytes
Binary file not shown.

linux64/massStorageCopy

0 Bytes
Binary file not shown.

src/massStorageCopy/massStorageCopy.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
9696
exit(ENOENT);
9797
}
9898

99-
p = strtok (output_dev, ",");
99+
p = strtok (output_dev, ",\"");
100100

101101
/* split output_dev and append tokens to list_output_dev */
102102
while (p) {
@@ -107,7 +107,7 @@ int main(int argc, char *argv[])
107107

108108
list_output_dev[n_output_dev-1] = p;
109109

110-
p = strtok (NULL, ",");
110+
p = strtok (NULL, ",\"");
111111
}
112112

113113
/* realloc one extra element for the last NULL */

0 commit comments

Comments
 (0)