[Asterisk-cvs] asterisk config.c,1.34,1.35

markster at lists.digium.com markster at lists.digium.com
Sun Dec 5 02:31:08 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv584

Modified Files:
	config.c 
Log Message:
Consider a comment to start with ;-- but not if there are more dashes (bug #2977)


Index: config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/config.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- config.c	4 Dec 2004 16:09:45 -0000	1.34
+++ config.c	5 Dec 2004 07:29:09 -0000	1.35
@@ -532,7 +532,7 @@
 							/* Yuck, gotta memmove */
 							memmove(comment_p - 1, comment_p, strlen(comment_p) + 1);
 							new_buf = comment_p;
-						} else if(comment_p[1] == COMMENT_TAG && comment_p[2] == COMMENT_TAG) {
+						} else if(comment_p[1] == COMMENT_TAG && comment_p[2] == COMMENT_TAG && (comment_p[3] != '-')) {
 							/* Meta-Comment start detected ";--" */
 							if (comment < MAX_NESTED_COMMENTS) {
 								*comment_p = '\0';




More information about the svn-commits mailing list