1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-09-15 04:08:07 -04:00

Shrink buffers to PATH_MAX.

git-svn-id: https://svn.xiph.org/trunk/ezstream@12686 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
moritz 2007-03-08 21:38:12 +00:00
parent 84bf642a1e
commit 40566705ae
2 changed files with 3 additions and 3 deletions

View File

@ -641,7 +641,7 @@ int
streamPlaylist(shout_t *shout, const char *fileName) streamPlaylist(shout_t *shout, const char *fileName)
{ {
const char *song; const char *song;
char lastSong[PATH_MAX + 1]; char lastSong[PATH_MAX];
if (playlist == NULL) { if (playlist == NULL) {
if (pezConfig->fileNameIsProgram) { if (pezConfig->fileNameIsProgram) {

View File

@ -135,7 +135,7 @@ playlist_read(const char *filename)
playlist_t *pl; playlist_t *pl;
unsigned long line; unsigned long line;
FILE *filep; FILE *filep;
char buf[PATH_MAX + 1]; char buf[PATH_MAX];
pl = playlist_create(filename); pl = playlist_create(filename);
@ -470,7 +470,7 @@ const char *
playlist_run_program(playlist_t *pl) playlist_run_program(playlist_t *pl)
{ {
FILE *filep; FILE *filep;
char buf[PATH_MAX + 1]; char buf[PATH_MAX];
if (pl == NULL) { if (pl == NULL) {
printf("%s: playlist_run_program(): Internal error: NULL argument\n", printf("%s: playlist_run_program(): Internal error: NULL argument\n",