inpcom.c, use backwards protected `skip_back_ws_()'
This commit is contained in:
parent
e0859d78c0
commit
eafa0a9bed
|
|
@ -4412,7 +4412,7 @@ inp_compat(struct line *card)
|
||||||
BExxx int1 0 V = {equation}
|
BExxx int1 0 V = {equation}
|
||||||
*/
|
*/
|
||||||
/* search for ' vol=' or ' vol =' */
|
/* 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;
|
cut_line = curr_line;
|
||||||
/* title and nodes */
|
/* title and nodes */
|
||||||
title_tok = gettok(&cut_line);
|
title_tok = gettok(&cut_line);
|
||||||
|
|
@ -4598,7 +4598,7 @@ inp_compat(struct line *card)
|
||||||
BGxxx int1 0 V = {equation}
|
BGxxx int1 0 V = {equation}
|
||||||
*/
|
*/
|
||||||
/* search for ' cur=' or ' cur =' */
|
/* 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;
|
char *m_ptr, *m_token;
|
||||||
cut_line = curr_line;
|
cut_line = curr_line;
|
||||||
/* title and nodes */
|
/* title and nodes */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue