diff options
Diffstat (limited to 'apps/talk.c')
-rw-r--r-- | apps/talk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/talk.c b/apps/talk.c index 89319ae9a2..c3a1148df4 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -247,6 +247,7 @@ static struct buflib_callbacks talk_ops = { static int open_voicefile(void) { + char fname[MAX_PATH]; char* p_lang = DEFAULT_VOICE_LANG; /* default */ if ( global_settings.lang_file[0] && @@ -255,7 +256,8 @@ static int open_voicefile(void) p_lang = (char *)global_settings.lang_file; } - return open_pathfmt(O_RDONLY, LANG_DIR "/%s.voice", p_lang); + return open_pathfmt(fname, sizeof(fname), + O_RDONLY, LANG_DIR "/%s.voice", p_lang); } |