diff options
| -rw-r--r-- | src/stream.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stream.c b/src/stream.c index 86813e6..e99d003 100644 --- a/src/stream.c +++ b/src/stream.c @@ -64,6 +64,11 @@ eninit_stream(int status, struct stream *stream) if (errno || *end) goto bad_format; + if (!stream->width) + eprintf("%s: width is zero\n", stream->file); + if (!stream->height) + eprintf("%s: height is zero\n", stream->file); + n = (size_t)(p - stream->buf) + 1; memmove(stream->buf, stream->buf + n, stream->ptr -= n); while (stream->ptr < 5) { |
