diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rbspeex/rbspeexdec.c | 2 | ||||
-rw-r--r-- | tools/voicefont.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/rbspeex/rbspeexdec.c b/tools/rbspeex/rbspeexdec.c index 14ee971697..3cf65f0331 100644 --- a/tools/rbspeex/rbspeexdec.c +++ b/tools/rbspeex/rbspeexdec.c | |||
@@ -70,7 +70,7 @@ int main(int argc, char **argv) | |||
70 | insize = ftell(fin); | 70 | insize = ftell(fin); |
71 | fseek(fin, 0, SEEK_SET); | 71 | fseek(fin, 0, SEEK_SET); |
72 | indata = malloc(insize); | 72 | indata = malloc(insize); |
73 | fread(indata, 1, insize, fin); | 73 | insize = fread(indata, 1, insize, fin); |
74 | fclose(fin); | 74 | fclose(fin); |
75 | 75 | ||
76 | /* fill in wav header */ | 76 | /* fill in wav header */ |
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 | |||
103 | memset(voiceonly, 0, sizeof(voiceonly)); | 103 | memset(voiceonly, 0, sizeof(voiceonly)); |
104 | while (!feof(voicefontids)) | 104 | while (!feof(voicefontids)) |
105 | { | 105 | { |
106 | fgets(line, sizeof(line), voicefontids); | 106 | if (!fgets(line, sizeof(line), voicefontids)) |
107 | break; | ||
107 | if (line[0] == '#') /* comment */ | 108 | if (line[0] == '#') /* comment */ |
108 | continue; | 109 | continue; |
109 | 110 | ||