-"%%{"[a-zA-Z][0-9a-zA-Z_-]+"}" { /* Muscle. */
- size_t len = strlen (yytext);
- yylval.string = (char*) malloc (len - 3);
- strncpy (yylval.string, yytext + 3, len - 4);
- yylval.string[len - 4] = 0;
+ /* Muscle. */
+"%%{"[a-zA-Z][0-9a-zA-Z_-]+"}" {
+ yylval->string = xstrndup (yytext + 3, yyleng - 4);