From 7706889a0a104b3c0fbe0ee255c2d20a9b4fc498 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 8 Dec 2018 14:57:36 +0100 Subject: [PATCH] inpcom.c, fix bug no 384 do not quote fourth token in f, h lines otherwise if dev name equals param name parsing fails --- src/frontend/inpcom.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 347483fab..11ef22c9b 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -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;