diff options
-rw-r--r-- | write.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -758,6 +758,10 @@ writeEBLC(FILE* out, FontPtr font) int offset; location = ftell(out); + if (location == -1) { + perror("Couldn't ftell"); + return -1; + } rc = fseek(out, table->location + 4, SEEK_SET); if(rc != 0) { perror("Couldn't seek"); |