Skip to content

Commit

Permalink
Fix possible file path truncation
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
  • Loading branch information
smcameron committed Dec 29, 2021
1 parent fcf1d65 commit e3e6cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wwviaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static struct sound_clip *audio_queue = NULL;
int wwviaudio_read_ogg_clip(int clipnum, char *filename)
{
uint64_t nframes;
char filebuf[PATH_MAX];
char filebuf[PATH_MAX + 1];
struct stat statbuf;
int sample_rate;
int nchannels;
Expand Down

0 comments on commit e3e6cf2

Please sign in to comment.