diff options
| author | jakob <jakob@memeware.net> | 2017-04-01 15:47:28 -0400 |
|---|---|---|
| committer | jakob <jakob@memeware.net> | 2017-04-01 15:47:28 -0400 |
| commit | 5ac05edbb64b89741728ba006b0ce681a5d51595 (patch) | |
| tree | d31d0f396181821bb5bd40fffd6e4c92bb025f7c /src/io.h | |
| parent | 06ef3f15929b4de343f4f749bade08f6b4783d3a (diff) | |
Fixed segmentation fault on invalid paths, cleaned up code
Diffstat (limited to 'src/io.h')
| -rw-r--r-- | src/io.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |