[xiph-commits] r12717 - trunk/ezstream/src

moritz at svn.xiph.org moritz at svn.xiph.org
Sat Mar 10 16:28:35 PST 2007


Author: moritz
Date: 2007-03-10 16:28:33 -0800 (Sat, 10 Mar 2007)
New Revision: 12717

Modified:
   trunk/ezstream/src/metadata.c
Log:
Make this build on Windows and not segfault the MIPSpro C compiler version <7.2.


Modified: trunk/ezstream/src/metadata.c
===================================================================
--- trunk/ezstream/src/metadata.c	2007-03-11 00:02:20 UTC (rev 12716)
+++ trunk/ezstream/src/metadata.c	2007-03-11 00:28:33 UTC (rev 12717)
@@ -442,7 +442,7 @@
 {
 	FILE	*filep;
 	char	 buf[METADATA_MAX + 1];
-	char	 command[PATH_MAX + strlen(" artist") + 1];
+	char	 command[PATH_MAX + sizeof(" artist")];
 
 	if (md == NULL) {
 		printf("%s: metadata_program_update(): Internal error: NULL argument\n",



More information about the commits mailing list