From 680107aa8af71a7d798be4166df02ff162299781 Mon Sep 17 00:00:00 2001 From: aland Date: Thu, 13 Jul 2006 20:54:17 +0000 Subject: [PATCH] Don't go up too far in open braces. Otherwise: Reply-Message = `%{Reply-Message:-x%{User-Name}x} will return 'xbob', rather than 'xbobx' --- src/main/xlat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/xlat.c b/src/main/xlat.c index eb0fb0c..e07409c 100644 --- a/src/main/xlat.c +++ b/src/main/xlat.c @@ -732,7 +732,7 @@ static void decode_attribute(const char **from, char **to, int freespace, q += retlen; - while((*p != '\0') && (openbraces > 0)) { + while((*p != '\0') && (openbraces > *open)) { /* * Handle escapes outside of the loop. */ -- 2.1.4