]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fs: Fix to previous fs-metawrap commit
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 27 May 2016 11:38:17 +0000 (14:38 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 27 May 2016 11:38:17 +0000 (14:38 +0300)
Argh. I was sure I compiled this before pushing it.

src/lib-fs/istream-metawrap.c

index 8e1b44a70bb9990a1ae3baf53ab25e61cbbba426..859302d55bc0fbc80a82af1482bcec54091977ea 100644 (file)
@@ -26,7 +26,7 @@ static int metadata_header_read(struct metawrap_istream *mstream)
                if (p == NULL) {
                        io_stream_set_error(&mstream->istream.iostream,
                                "Metadata header line is missing ':' at offset %"PRIuUOFF_T,
-                               mstream->istream.v_offset);
+                               mstream->istream.istream.v_offset);
                        mstream->istream.istream.stream_errno = EINVAL;
                        return -1;
                }
@@ -40,7 +40,7 @@ static int metadata_header_read(struct metawrap_istream *mstream)
                } else {
                        io_stream_set_error(&mstream->istream.iostream,
                                "Metadata header is missing ending line at offset %"PRIuUOFF_T,
-                               mstream->istream.v_offset);
+                               mstream->istream.istream.v_offset);
                        mstream->istream.istream.stream_errno = EINVAL;
                        return -1;
                }