diff --git a/src/ezstream.c b/src/ezstream.c index cf64dc3..5d2495f 100644 --- a/src/ezstream.c +++ b/src/ezstream.c @@ -641,7 +641,7 @@ int 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) { diff --git a/src/playlist.c b/src/playlist.c index a78712b..0580895 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -135,7 +135,7 @@ playlist_read(const char *filename) 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 @@ const char * 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",