From 6b745e82547f98582d057afe974f17a04619321f Mon Sep 17 00:00:00 2001 From: zolliker Date: Wed, 30 Mar 2005 13:24:06 +0000 Subject: [PATCH] - inserted (int) conversion in format to avoid warning --- fortify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fortify.c b/fortify.c index 060e6f20..19dac50a 100644 --- a/fortify.c +++ b/fortify.c @@ -679,7 +679,7 @@ Fortify_Disable(char *file, unsigned long line) 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(" Fortify_Disable failed\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) { - sprintf(st_Buffer, "\n%8p %8d ", ptr, offset); + sprintf(st_Buffer, "\n%8p %8d ", ptr, (int)offset); st_Output(st_Buffer); }