From 1a863840987636ab50c7192f20fe6723a15740a8 Mon Sep 17 00:00:00 2001 From: hartwick Date: Mon, 26 Mar 2001 15:42:38 +0000 Subject: [PATCH] * Remove the closing brace if the attribute is not found. Only remove the innermost brace. --- src/main/xlat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/xlat.c b/src/main/xlat.c index a2b1195..efcea68 100644 --- a/src/main/xlat.c +++ b/src/main/xlat.c @@ -138,7 +138,7 @@ static void decode_attribute(const char **from, char **to, int freespace, int *o /* * Skip to last '}' if attr is found * The rest of the stuff within the braces is - * useless if we found we we need + * useless if we found what we need */ if(found) { while((*p != '\0') && (openbraces > 0)) { @@ -148,7 +148,8 @@ static void decode_attribute(const char **from, char **to, int freespace, int *o p++; } } else { - p--; + openbraces--; + /* p--; */ } *open = openbraces; -- 2.1.4