diff --git a/Sources/Ecc/Scanner.l b/Sources/Ecc/Scanner.l index 2a2d85c..554b7e6 100644 --- a/Sources/Ecc/Scanner.l +++ b/Sources/Ecc/Scanner.l @@ -14,7 +14,7 @@ int iLastLine = -1; yylval = yytext; \ } else { \ char strLine[512]; \ - snprintf(strLine, 512, "\n#line %d \"%s\"\n", _iLinesCt, _strInputFileName);\ + sprintf(strLine, "\n#line %d \"%s\"\n", _iLinesCt, _strInputFileName);\ yylval = SType(strLine)+yytext; \ iLastLine=_iLinesCt; \ } \ @@ -129,7 +129,7 @@ EXP_FLT (({DIGIT}+("."({DIGIT}*)?)?)("E"|"e")("+"|"-")?{DIGIT}+) /* specially bracketed cpp blocks */ "%{" { char strLine[512]; - snprintf(strLine, 512, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName ); + sprintf(strLine, "#line %d \"%s\"\n", _iLinesCt, _strInputFileName ); _strCppBlock = strdup(strLine); BEGIN(CPPBLOCK); }