summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--write.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/write.c b/write.c
index e68b70c..d86ce5f 100644
--- a/write.c
+++ b/write.c
@@ -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");