From eafa0a9bedaa6bb012c6f459536bcb4604c13280 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 12 Jul 2014 10:08:47 +0200 Subject: [PATCH] inpcom.c, use backwards protected `skip_back_ws_()' --- 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 750910971..f58f12a5a 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -4412,7 +4412,7 @@ inp_compat(struct line *card) BExxx int1 0 V = {equation} */ /* search for ' vol=' or ' vol =' */ - if (((str_ptr = strchr(curr_line, '=')) != NULL) && prefix("vol", skip_back_non_ws(skip_back_ws(str_ptr)))) { + if (((str_ptr = strchr(curr_line, '=')) != NULL) && prefix("vol", skip_back_non_ws_(skip_back_ws_(str_ptr, curr_line), curr_line))) { cut_line = curr_line; /* title and nodes */ title_tok = gettok(&cut_line); @@ -4598,7 +4598,7 @@ inp_compat(struct line *card) BGxxx int1 0 V = {equation} */ /* search for ' cur=' or ' cur =' */ - if (((str_ptr = strchr(curr_line, '=')) != NULL) && prefix("cur", skip_back_non_ws(skip_back_ws(str_ptr)))) { + if (((str_ptr = strchr(curr_line, '=')) != NULL) && prefix("cur", skip_back_non_ws_(skip_back_ws_(str_ptr, curr_line), curr_line))) { char *m_ptr, *m_token; cut_line = curr_line; /* title and nodes */