mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-29 23:15:56 -04:00
moar warning fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user