[vte] [stream] Fix returned offset



commit 2eefab893485bbea1d0e2fb62e6f6122314d1959
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon Sep 14 13:07:26 2009 -0400

    [stream] Fix returned offset

 src/vtestream-file.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index 3eabc84..c60ba9d 100644
--- a/src/vtestream-file.h
+++ b/src/vtestream-file.h
@@ -110,7 +110,7 @@ _vte_file_stream_append (VteStream *astream, const char *data, gsize len)
 	ret = lseek (stream->fd[0], 0, SEEK_END);
 	_xwrite (stream->fd[0], data, len);
 
-	return ret;
+	return stream->offset[0] + ret;
 }
 
 static gsize



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]