diff options
Diffstat (limited to 'dimension')
-rw-r--r-- | dimension/flex.l | 2 |
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) |