summaryrefslogtreecommitdiff
path: root/src/vtestream-file.h
diff options
context:
space:
mode:
authorEgmont Koblinger <egmont@gmail.com>2014-11-17 12:19:16 +0100
committerEgmont Koblinger <egmont@gmail.com>2014-11-17 12:19:16 +0100
commitecf7e0dafb95702a14c2e57e96b397600ccfc85b (patch)
tree496f32a21e0c78f1e7048f0c9b8306c9819dee0e /src/vtestream-file.h
parenta7419dd861f0021391cae784137bdff2a0714426 (diff)
downloadvte-ecf7e0dafb95702a14c2e57e96b397600ccfc85b.tar.gz
widget: Fix advance_tail if tail is not in the stream
https://bugzilla.gnome.org/show_bug.cgi?id=738964
Diffstat (limited to 'src/vtestream-file.h')
-rw-r--r--src/vtestream-file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index 47954ba9..5c709b41 100644
--- a/src/vtestream-file.h
+++ b/src/vtestream-file.h
@@ -464,6 +464,8 @@ _vte_file_stream_advance_tail (VteStream *astream, gsize offset)
{
VteFileStream *stream = (VteFileStream *) astream;
+ g_assert(offset <= stream->head);
+
if (offset >= stream->offset[0]) {
stream->offset[1] = stream->offset[0];
stream->offset[0] = stream->head;