summaryrefslogtreecommitdiffstats
path: root/tools/voicefont.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-09-21 14:27:12 -0400
committerSolomon Peachy <pizza@shaftnet.org>2018-09-28 11:53:15 -0400
commit3e209f34e4713a7fc26db74ad592d99b640db1bc (patch)
tree4dfb4df9b601dac422aed0070e6bc8382fdf5d2b /tools/voicefont.c
parente18425197e41cc2ecdc475cbd9d18ce36cb1b6e4 (diff)
downloadrockbox-3e209f34e4713a7fc26db74ad592d99b640db1bc.tar.gz
rockbox-3e209f34e4713a7fc26db74ad592d99b640db1bc.tar.bz2
rockbox-3e209f34e4713a7fc26db74ad592d99b640db1bc.zip
misc: Fix some assorted compiler warnings
Change-Id: Ibc4aac79e6fce92ad4414ed50122c2d4d6295f89
Diffstat (limited to 'tools/voicefont.c')
-rw-r--r--tools/voicefont.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/voicefont.c b/tools/voicefont.c
index 4d1363b1bc..f4318b3b26 100644
--- a/tools/voicefont.c
+++ b/tools/voicefont.c
@@ -103,7 +103,8 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output, unsi
memset(voiceonly, 0, sizeof(voiceonly));
while (!feof(voicefontids))
{
- fgets(line, sizeof(line), voicefontids);
+ if (!fgets(line, sizeof(line), voicefontids))
+ break;
if (line[0] == '#') /* comment */
continue;