Skip to content

Commit

Permalink
Fix buffer overflow in tic_fs_changedir (#2658)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceisjustplaying authored Aug 26, 2024
1 parent ca5c921 commit 70b0111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/studio/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ void tic_fs_dir(tic_fs* fs, char* dir)

void tic_fs_changedir(tic_fs* fs, const char* dir)
{
char temp[TICNAME_MAX];
char temp[TICNAME_MAX+1];

if (strlen(fs->work) > 0) {
snprintf(temp, TICNAME_MAX+1, "%s/%s", fs->work, dir);
Expand Down

0 comments on commit 70b0111

Please sign in to comment.