Fix a bug in code that executes when <token value="NNN">...</token> is disabled
authorNick Downing <downing.nick@gmail.com>
Thu, 21 Jun 2018 13:30:44 +0000 (23:30 +1000)
committerNick Downing <downing.nick@gmail.com>
Thu, 21 Jun 2018 13:30:58 +0000 (23:30 +1000)
src/scan-gram.c

index 90aa03e..0155676 100644 (file)
@@ -1482,8 +1482,8 @@ YY_DECL
  if (result < 0)
   return ~result;
  piece_pack();
-#if 0
- piece[piece1++] = strdup(piece_temp);
+#if 1
+ piece_esc(yytext, strlen(yytext));
  ++piece0;
 #else
  size_t n = strlen(yytext);