diff --git a/tools/voicefont.c b/tools/voicefont.c index 6fd443a63f..10f08f385c 100644 --- a/tools/voicefont.c +++ b/tools/voicefont.c @@ -25,6 +25,8 @@ #include #include +#define HEADER_SIZE 20 + /* endian conversion macros */ #define SWAP2(x) ((((unsigned)(x)>>8) & 0x00ff) | (((unsigned)(x)<<8) & 0xff00)) #define SWAP4(x) ((((unsigned)(x)>>24) & 0x000000ff) |\ @@ -138,7 +140,7 @@ int main (int argc, char** argv) printf("Error opening output file %s\n", argv[4]); return -2; } - fseek(pFile, 16 + count*8, SEEK_SET); /* space for header */ + fseek(pFile, HEADER_SIZE + count*8, SEEK_SET); /* space for header */ for (i=0; i