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:
Holger Vogt 2018-12-08 14:57:36 +01:00
parent 55faba9e09
commit 7706889a0a
1 changed files with 5 additions and 0 deletions

View File

@ -6557,6 +6557,11 @@ inp_quote_params(struct card *c, struct card *end_c, struct dependency *deps, in
if (num_terminals <= 0)
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++) {
char *s = curr_line;