summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-28 01:34:09 -0400
committerTavian Barnes <tavianator@gmail.com>2009-10-28 01:34:09 -0400
commit58ee0624d54fede51c1e740e9c0c15f509ed24cc (patch)
tree2c2434dce3adee34bd5656d098bb41153dd36102
parentccdc897dc1268ff65f6d897f9eef7821b416d0ae (diff)
downloaddimension-58ee0624d54fede51c1e740e9c0c15f509ed24cc.tar.xz
Fix line calculation in comment tokenizer.
-rw-r--r--dimension/tokenize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dimension/tokenize.c b/dimension/tokenize.c
index ee0b9a1..4eb6a62 100644
--- a/dimension/tokenize.c
+++ b/dimension/tokenize.c
@@ -37,6 +37,7 @@ dmnsn_tokenize_comment(char *map, size_t size,
++*next;
} while (*next - map < size && **next != '\n');
+ ++*next;
++*line;
*col = 0;
} else if (*(*next + 1) == '*') {