From f84ace2b05d81213ea89da0a962856a705babb7b Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Sun, 18 Sep 2011 16:16:58 +0200 Subject: [PATCH] fixed unescaping of & < > --- dunst.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dunst.c b/dunst.c index 096b9c1..52e026d 100644 --- a/dunst.c +++ b/dunst.c @@ -332,17 +332,17 @@ char else if(!strncmp(strpos, "&", strlen("amp;"))) { *tmppos = '&'; tmppos++; - strpos += strlen("&") - 1; + strpos += strlen("&"); } else if(!strncmp(strpos, "<", strlen("lt;"))) { *tmppos = '<'; tmppos++; - strpos += strlen("<") - 1; + strpos += strlen("<"); } else if(!strncmp(strpos, ">", strlen("gt;"))) { *tmppos = '>'; tmppos++; - strpos += strlen(">") - 1; + strpos += strlen(">"); } else { *tmppos = *strpos;