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