inpcom.c, fix bug no 384
do not quote fourth token in f, h lines otherwise if dev name equals param name parsing fails
This commit is contained in:
parent
55faba9e09
commit
7706889a0a
|
|
@ -6557,6 +6557,11 @@ inp_quote_params(struct card *c, struct card *end_c, struct dependency *deps, in
|
||||||
if (num_terminals <= 0)
|
if (num_terminals <= 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* There are devices that should not get quotes around tokens following after the terminals.
|
||||||
|
See bug 384 */
|
||||||
|
if (curr_line[0] == 'f' || curr_line[0] == 'h')
|
||||||
|
num_terminals++;
|
||||||
|
|
||||||
for (i = 0; i < num_params; i++) {
|
for (i = 0; i < num_params; i++) {
|
||||||
|
|
||||||
char *s = curr_line;
|
char *s = curr_line;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue