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

moritz at svn.xiph.org moritz at svn.xiph.org
Thu Mar 8 13:38:15 PST 2007


Author: moritz
Date: 2007-03-08 13:38:12 -0800 (Thu, 08 Mar 2007)
New Revision: 12686

Modified:
   trunk/ezstream/src/ezstream.c
   trunk/ezstream/src/playlist.c
Log:
Shrink buffers to PATH_MAX.


Modified: trunk/ezstream/src/ezstream.c
===================================================================
--- trunk/ezstream/src/ezstream.c	2007-03-08 20:59:29 UTC (rev 12685)
+++ trunk/ezstream/src/ezstream.c	2007-03-08 21:38:12 UTC (rev 12686)
@@ -641,7 +641,7 @@
 streamPlaylist(shout_t *shout, const char *fileName)
 {
 	const char	*song;
-	char		 lastSong[PATH_MAX + 1];
+	char		 lastSong[PATH_MAX];
 
 	if (playlist == NULL) {
 		if (pezConfig->fileNameIsProgram) {

Modified: trunk/ezstream/src/playlist.c
===================================================================
--- trunk/ezstream/src/playlist.c	2007-03-08 20:59:29 UTC (rev 12685)
+++ trunk/ezstream/src/playlist.c	2007-03-08 21:38:12 UTC (rev 12686)
@@ -135,7 +135,7 @@
 	playlist_t	*pl;
 	unsigned long	 line;
 	FILE		*filep;
-	char		 buf[PATH_MAX + 1];
+	char		 buf[PATH_MAX];
 
 	pl = playlist_create(filename);
 
@@ -470,7 +470,7 @@
 playlist_run_program(playlist_t *pl)
 {
 	FILE	*filep;
-	char	 buf[PATH_MAX + 1];
+	char	 buf[PATH_MAX];
 
 	if (pl == NULL) {
 		printf("%s: playlist_run_program(): Internal error: NULL argument\n",



More information about the commits mailing list