summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-08-14 06:02:46 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-08-14 06:02:46 -0700
commit15a87accd4ec2cf79712863a47b88da515584477 (patch)
tree9e64339e575e379078f014cb14a756a232ede86c
parent55292314bfeb49dde06568affbd3457f1aa13374 (diff)
downloadtxr-15a87accd4ec2cf79712863a47b88da515584477.tar.gz
txr-15a87accd4ec2cf79712863a47b88da515584477.tar.bz2
txr-15a87accd4ec2cf79712863a47b88da515584477.zip
bugfix: seek-stream :from-end not working.
* stream.h (enum strm_whence): Fix strm_end and strm_start being duplicate values; strm_end must map to SEEK_END.
-rw-r--r--stream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.h b/stream.h
index 27b3ab22..149e9ded 100644
--- a/stream.h
+++ b/stream.h
@@ -28,7 +28,7 @@
enum strm_whence {
strm_start = SEEK_SET,
strm_cur = SEEK_CUR,
- strm_end = SEEK_SET
+ strm_end = SEEK_END
};
enum indent_mode {