diff --git a/src/lib/sixel.c b/src/lib/sixel.c index c6a9b996e..614b6c8b0 100644 --- a/src/lib/sixel.c +++ b/src/lib/sixel.c @@ -548,7 +548,7 @@ sixel_reblit(sprixel* s, tament* tam){ if(fp == NULL){ return -1; } - if(fwrite(s->glyph, s->parse_start, 1, fp) != (size_t)s->parse_start){ + if(fwrite(s->glyph, s->parse_start, 1, fp) != 1){ fclose(fp); free(buf); return -1;