From 8015442a2275a0a102d85ac8e8dfe6afb9645bed Mon Sep 17 00:00:00 2001 From: h_vogt Date: Wed, 9 Oct 2013 23:58:54 +0200 Subject: [PATCH] inpcom.c: improved character check around 'temper' --- src/frontend/inpcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 13823b127..0942caa13 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -5660,12 +5660,12 @@ inp_temper_compat(struct line *card) beg_str = beg_tstr = curr_line; while ((beg_tstr = strstr(beg_tstr, "temper")) != NULL) { actchar = *(beg_tstr - 1); - if (!isspace(actchar) && !is_arith_char(actchar) && !(actchar == ',')) { + if (!isspace(actchar) && !is_arith_char(actchar) && !(actchar == ',') && !(actchar == '{')) { beg_tstr++; continue; } actchar = *(beg_tstr + 6); - if (!isspace(actchar) && !is_arith_char(actchar) && !(actchar == ',')) + if (!isspace(actchar) && !is_arith_char(actchar) && !(actchar == ',') && !(actchar == '}')) continue; /* we have found a true 'temper' */ /* set the global variable */