summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-07 13:24:26 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-07 13:24:26 -0700
commit802270f434a72935ba75c725b3cadcae4f478735 (patch)
treeb045b8831ac4c691ce90c41efa8e04b5330918da /src/parser.h
parent3adc586d9d7539e4d33f737110ffd4e236379099 (diff)
parentfdfa1e4bedf95691389efb9991ac8a6a4599c158 (diff)
Merge pull request #56 from nwellnhof/bufsize_t
Safer handling of string buffer sizes and indices
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser.h b/src/parser.h
index ccdf84b..6e18c67 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -16,12 +16,12 @@ struct cmark_parser {
struct cmark_node* root;
struct cmark_node* current;
int line_number;
- int offset;
- int first_nonspace;
+ bufsize_t offset;
+ bufsize_t first_nonspace;
int indent;
bool blank;
cmark_strbuf *curline;
- int last_line_length;
+ bufsize_t last_line_length;
cmark_strbuf *linebuf;
int options;
};