Fix warnings from dbmfStrdup() change

This commit is contained in:
Andrew Johnson
2016-05-19 14:01:05 -05:00
parent 61e82ee1ae
commit 6e6ae4354b

View File

@@ -24,13 +24,13 @@ bareword [a-zA-Z0-9_\-+:./\\\[\]<>;]
{doublequote}({dstringchar}|{escape})*{doublequote} |
{singlequote}({sstringchar}|{escape})*{singlequote} {
yylval.Str = dbmfStrdup(yytext+1);
yylval.Str = dbmfStrdup((char *) yytext+1);
yylval.Str[strlen(yylval.Str)-1] = '\0';
return(QUOTE);
}
{bareword}+ {
yylval.Str = dbmfStrdup(yytext);
yylval.Str = dbmfStrdup((char *) yytext);
return(WORD);
}