mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
libcacard: s/strip(args++)/strip(args+1)
vcard_emul_options used args = strip(args++) a few times, which was not returning the expected result since the rest of the code expected args to be increased by at least 1, which is not the case if *args is not a blank space when this function is called. Replace these calls by "strip(args+1)" which will do what we expect. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Reviewed-by: Alon Levy <alevy@redhat.com>
This commit is contained in:
parent
ee83d41466
commit
009651675a
1 changed files with 2 additions and 2 deletions
|
@ -1171,7 +1171,7 @@ vcard_emul_options(const char *args)
|
||||||
args++;
|
args++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
args = strip(args++);
|
args = strip(args+1);
|
||||||
type_params = args;
|
type_params = args;
|
||||||
args = strpbrk(args + 1, ",)");
|
args = strpbrk(args + 1, ",)");
|
||||||
if (*args == 0) {
|
if (*args == 0) {
|
||||||
|
@ -1182,7 +1182,7 @@ vcard_emul_options(const char *args)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
type_params_length = args - name;
|
type_params_length = args - name;
|
||||||
args = strip(args++);
|
args = strip(args+1);
|
||||||
if (*args == 0) {
|
if (*args == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue