Merged revisions 87294 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Mon, 29 Oct 2007 14:29:18 +0000 (14:29 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 29 Oct 2007 14:29:18 +0000 (14:29 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r87294 | file | 2007-10-29 11:23:49 -0300 (Mon, 29 Oct 2007) | 6 lines

Fix issue with ast_unescape_semicolon going into an endless loop.
(closes issue #10550)
Reported by: ramonpeek
Patches:
      unescape-85177-1.patch uploaded by IgorG (license 20)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87295 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/utils.c

index 34e4650..8e78084 100644 (file)
@@ -997,6 +997,8 @@ char *ast_unescape_semicolon(char *s)
                if ((e > work) && (*(e-1) == '\\')) {
                        memmove(e - 1, e, strlen(e) + 1);
                        work = e;
+               } else {
+                       work = e + 1;
                }
        }