X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/de5fb744c98f86f3366cd5adfd4a7a202641acd3..75ae8299840bbd854fa2474d38402bbb933c6511:/src/parse-gram.c diff --git a/src/parse-gram.c b/src/parse-gram.c index 8ff1d067..2cf9e86c 100644 --- a/src/parse-gram.c +++ b/src/parse-gram.c @@ -2676,7 +2676,7 @@ yyreduce: #line 683 "src/parse-gram.y" /* yacc.c:1668 */ { code_props plain_code; - (yyvsp[0].code)[strlen ((yyvsp[0].code)) - 1] = '\n'; + (yyvsp[0].code)[strlen ((yyvsp[0].code)) - 1] = '\0'; code_props_plain_init (&plain_code, (yyvsp[0].code)+1, (yylsp[0])); code_props_translate_code (&plain_code); gram_scanner_last_string_free ();