X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/14bfd2e9d9e5a17dfc7cbba44872abccad0c1d65..cc8962bdde81b04aa728aef21e53b4a08a0debfe:/src/parse-gram.y diff --git a/src/parse-gram.y b/src/parse-gram.y index b6338597..ebcd31b3 100644 --- a/src/parse-gram.y +++ b/src/parse-gram.y @@ -682,7 +682,7 @@ braceless: "{...}" { code_props plain_code; - $1[strlen ($1) - 1] = '\n'; + $1[strlen ($1) - 1] = '\0'; code_props_plain_init (&plain_code, $1+1, @1); code_props_translate_code (&plain_code); gram_scanner_last_string_free ();