moar warning fixes

This commit is contained in:
DarthArgus
2015-10-14 22:03:40 -05:00
parent f71f036f7b
commit 05d4d99280
3 changed files with 7 additions and 6 deletions
@@ -823,7 +823,7 @@ void parseESCstring(char *str, char *targetBuffer, int sizeOfTarget)
sPtr++;
if (numIndex > 3)
{
sprintf(err_msg, "Escape sequence Octal numbers greater then\noctal o400 (256 decimal)! [more then 3 digits]", *sPtr);
sprintf(err_msg, "Escape sequence Octal numbers greater then\noctal o400 (256 decimal)! [more then 3 digits]");
yyerror(err_msg);
exitParser = 1;
}
@@ -841,7 +841,7 @@ void parseESCstring(char *str, char *targetBuffer, int sizeOfTarget)
if (tempNum > 255)
{
sprintf(err_msg, "Escape sequence Octal numbers greater then\noctal o400 (256 decimal)!", tempNum);
sprintf(err_msg, "Escape sequence Octal numbers greater then\noctal o400 (256 decimal)!");
yyerror(err_msg);
exitParser = 1;
}
@@ -865,7 +865,7 @@ void parseESCstring(char *str, char *targetBuffer, int sizeOfTarget)
sPtr++;
if (numIndex > 3)
{
sprintf(err_msg, "Escape sequence HEX numbers greater then 0x100\n(256 decimal)! [more then 3 digits]", *sPtr);
sprintf(err_msg, "Escape sequence HEX numbers greater then 0x100\n(256 decimal)! [more then 3 digits]");
yyerror(err_msg);
exitParser = 1;
}
@@ -883,7 +883,7 @@ void parseESCstring(char *str, char *targetBuffer, int sizeOfTarget)
if (tempNum > 255)
{
sprintf(err_msg, "Escape sequence HEX numbers greater then 0x100\n(256 decimal)!", *sPtr);
sprintf(err_msg, "Escape sequence HEX numbers greater then 0x100\n(256 decimal)!");
yyerror(err_msg);
exitParser = 1;
}