diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/talk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/talk.c b/apps/talk.c index c327487962..0e3ff17a1b 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -542,7 +542,7 @@ void talk_init(void) filehandle = open_voicefile(); size_t audiobufsz = audiobufend - audiobuf; /* test if we can open and if it fits in the audiobuffer */ - has_voicefile = filehandle >= 0 && filesize(filehandle) > (off_t)audiobufsz; + has_voicefile = filehandle >= 0 && filesize(filehandle) <= (off_t)audiobufsz; voicefile_size = 0; if (has_voicefile) |