[Asterisk-cvs] asterisk/res res_musiconhold.c,1.44,1.45

anthm at lists.digium.com anthm at lists.digium.com
Tue Jan 4 12:21:13 CST 2005


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

Modified Files:
	res_musiconhold.c 
Log Message:
fix bug added to my code so I don

Index: res_musiconhold.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_musiconhold.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- res_musiconhold.c	3 Jan 2005 00:38:01 -0000	1.44
+++ res_musiconhold.c	4 Jan 2005 18:26:17 -0000	1.45
@@ -713,8 +713,10 @@
 		if (!S_ISREG(statbuf.st_mode))
 			continue;
 
-		if ((ext = strrchr(filepath, '.')))
+		if ((ext = strrchr(filepath, '.'))) {
 			*ext = '\0';
+			ext++;
+		}
 
 		/* check to see if this file's format can be opened */
 		if (ast_fileexists(filepath, ext, NULL) == -1)




More information about the svn-commits mailing list