Fix MassStorageCopy issue with double quoted list
'"' strip now Fix #11 Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
This commit is contained in:
parent
f16b97868e
commit
3229cd7077
3 changed files with 2 additions and 2 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -96,7 +96,7 @@ int main(int argc, char *argv[])
|
|||
exit(ENOENT);
|
||||
}
|
||||
|
||||
p = strtok (output_dev, ",");
|
||||
p = strtok (output_dev, ",\"");
|
||||
|
||||
/* split output_dev and append tokens to list_output_dev */
|
||||
while (p) {
|
||||
|
|
@ -107,7 +107,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
list_output_dev[n_output_dev-1] = p;
|
||||
|
||||
p = strtok (NULL, ",");
|
||||
p = strtok (NULL, ",\"");
|
||||
}
|
||||
|
||||
/* realloc one extra element for the last NULL */
|
||||
|
|
|
|||
Loading…
Reference in a new issue