play: use stack to store filename

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
This commit is contained in:
Mahyar Koshkouei
2025-08-01 00:01:08 +01:00
parent c5d2650ea7
commit fb7c6166b1
3 changed files with 10 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
#include <stdbool.h>
#include <limits.h>
#ifndef ctrmus_playback_h
#define ctrmus_playback_h
@@ -53,7 +54,7 @@ struct decoder_fn
struct playbackInfo_t
{
char *file;
char file[PATH_MAX];
struct errInfo_t *errInfo;
/* If 0, then the duration of file is unavailable. */