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;