From: funman Date: Sat, 15 May 2010 11:19:25 +0000 (+0000) Subject: fix inverted logic in r26047: voice works again X-Git-Url: https://repo.or.cz/w/kugel-rb.git/commitdiff_plain/152e4b9985e15d6148ce26e533a0950656366efc fix inverted logic in r26047: voice works again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26049 a1c6a512-1295-4272-9138-f99709370657 --- diff --git a/apps/talk.c b/apps/talk.c index c32748796..0e3ff17a1 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)