From 5464859ebb3ea1d595b707cb8d9bbb9d02d3cd39 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 2 Nov 2014 12:44:51 +0100 Subject: [PATCH] inpcom.c, inp_bsource_compat(), shrink brace removal to the actual b-expression --- src/frontend/inpcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index d9b435455..75eeed236 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -5392,7 +5392,7 @@ inp_bsource_compat(struct line *card) if ((str_ptr = strstr(curr_line, "m={m}")) != NULL) memcpy(str_ptr, " ", 5); /* scan the line and remove all '{' and '}' */ - str_ptr = curr_line; + str_ptr = equal_ptr + 1; while (*str_ptr) { if ((*str_ptr == '{') || (*str_ptr == '}')) *str_ptr = ' ';