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:
Frederic.Pillon 2017-06-26 09:35:41 +02:00
parent f16b97868e
commit 3229cd7077
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View file

@ -96,7 +96,7 @@ int main(int argc, char *argv[])
exit(ENOENT); exit(ENOENT);
} }
p = strtok (output_dev, ","); p = strtok (output_dev, ",\"");
/* split output_dev and append tokens to list_output_dev */ /* split output_dev and append tokens to list_output_dev */
while (p) { while (p) {
@ -107,7 +107,7 @@ int main(int argc, char *argv[])
list_output_dev[n_output_dev-1] = p; list_output_dev[n_output_dev-1] = p;
p = strtok (NULL, ","); p = strtok (NULL, ",\"");
} }
/* realloc one extra element for the last NULL */ /* realloc one extra element for the last NULL */