diff options
-rw-r--r-- | lib/libnet/tftp.c | 2 | ||||
-rw-r--r-- | make.rules | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libnet/tftp.c b/lib/libnet/tftp.c index ab63578..108092b 100644 --- a/lib/libnet/tftp.c +++ b/lib/libnet/tftp.c @@ -266,7 +266,7 @@ static void print_progress(int urgent, int received_bytes) sprintf(buffer, "%d KBytes", (progress_last_bytes >> 10)); for(ptr = buffer; *ptr != 0; ++ptr) *ptr = '\b'; - printf(buffer); + printf("%s", buffer); } printf("%d KBytes", (received_bytes >> 10)); i = 1; @@ -72,7 +72,7 @@ AR ?= $(CROSS)ar RANLIB ?= $(CROSS)ranlib CPP ?= $(CROSS)cpp -WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes +WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Wformat-security CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float -fno-strict-aliasing \ -mno-altivec -mabi=no-altivec -fno-stack-protector $(WARNFLAGS) |