summaryrefslogtreecommitdiff
path: root/src/io.h
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-04-01 15:47:28 -0400
committerjakob <jakob@memeware.net>2017-04-01 15:47:28 -0400
commit5ac05edbb64b89741728ba006b0ce681a5d51595 (patch)
treed31d0f396181821bb5bd40fffd6e4c92bb025f7c /src/io.h
parent06ef3f15929b4de343f4f749bade08f6b4783d3a (diff)
Fixed segmentation fault on invalid paths, cleaned up code
Diffstat (limited to 'src/io.h')
-rw-r--r--src/io.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/io.h b/src/io.h
index 3caaa95..b37ec51 100644
--- a/src/io.h
+++ b/src/io.h
@@ -33,10 +33,10 @@ enum _location {
position. The structure additionally maintains a `length` variable
containing the stream's length. */
struct stream {
- size_t len; /* Length of the stream. */
+ size_t len; /* Length of the stream. */
char *_start; /* Pointer to the stream's start. */
- char *_cur; /* Pointer to the current position. */
- enum _location _loc; /* Location of the stream in memory. */
+ char *_cur; /* Pointer to the current position. */
+ enum _location _loc; /* Location of the stream in memory. */
};
/* Allocates `len` bytes of non-zeroed memory and returns a new stream