- inserted (int) conversion in format to avoid warning
This commit is contained in:
@ -679,7 +679,7 @@ Fortify_Disable(char *file, unsigned long line)
|
|||||||
|
|
||||||
if(st_Head)
|
if(st_Head)
|
||||||
{
|
{
|
||||||
sprintf(st_Buffer, "Fortify: %s.%d\n", file, line);
|
sprintf(st_Buffer, "Fortify: %s.%d\n", file, (int)line);
|
||||||
st_Output(st_Buffer);
|
st_Output(st_Buffer);
|
||||||
st_Output(" Fortify_Disable failed\n");
|
st_Output(" Fortify_Disable failed\n");
|
||||||
st_Output(" (because there is memory on the Fortify memory list)\n");
|
st_Output(" (because there is memory on the Fortify memory list)\n");
|
||||||
@ -794,7 +794,7 @@ OutputFortification(unsigned char *ptr, unsigned char value, size_t size)
|
|||||||
{
|
{
|
||||||
if(column == 0)
|
if(column == 0)
|
||||||
{
|
{
|
||||||
sprintf(st_Buffer, "\n%8p %8d ", ptr, offset);
|
sprintf(st_Buffer, "\n%8p %8d ", ptr, (int)offset);
|
||||||
st_Output(st_Buffer);
|
st_Output(st_Buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user