Merged revisions 78180 via svnmerge from
[asterisk/asterisk.git] / main / config.c
index 4ce7779..7c9106c 100644 (file)
@@ -851,9 +851,8 @@ static struct ast_config *config_text_file_load(const char *database, const char
                                
                                while ((comment_p = strchr(new_buf, COMMENT_META))) {
                                        if ((comment_p > new_buf) && (*(comment_p-1) == '\\')) {
-                                               /* Yuck, gotta memmove */
-                                               memmove(comment_p - 1, comment_p, strlen(comment_p) + 1);
-                                               new_buf = comment_p;
+                                               /* Escaped semicolons aren't comments. */
+                                               new_buf = comment_p + 1;
                                        } else if (comment_p[1] == COMMENT_TAG && comment_p[2] == COMMENT_TAG && (comment_p[3] != '-')) {
                                                /* Meta-Comment start detected ";--" */
                                                if (comment < MAX_NESTED_COMMENTS) {