summaryrefslogtreecommitdiffstats
path: root/dimension/flex.l
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/flex.l')
-rw-r--r--dimension/flex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/dimension/flex.l b/dimension/flex.l
index b470159..8c3008d 100644
--- a/dimension/flex.l
+++ b/dimension/flex.l
@@ -80,7 +80,7 @@
#define STRCAT(str, len) \
do { \
token.value = realloc(token.value, string_length + len + 1); \
- strncpy(token.value + string_length, str, len); \
+ strncpy(token.value + string_length, str, len + 1); \
string_length += len; \
CALCULATE_COLUMN(); \
} while(0)