From 37acc03c7c5cbf8901dc0af9cbe16acbe4e96237 Mon Sep 17 00:00:00 2001 From: hinder Date: Tue, 20 Nov 2012 13:12:36 +0000 Subject: ScheduleInterface.c: Add printf format string Using the data string as a format string can be a security vulnerability and hence triggers a compiler warning. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4916 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/main/ScheduleInterface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/ScheduleInterface.c b/src/main/ScheduleInterface.c index e267e0b4..d8a02f35 100644 --- a/src/main/ScheduleInterface.c +++ b/src/main/ScheduleInterface.c @@ -2433,7 +2433,7 @@ static int CCTKi_SchedulePrintWhile(int n_whiles, printf(" && "); } - printf(whiles[i]); + printf("%s", whiles[i]); } printf(")\n"); indent_level += 2; @@ -2503,7 +2503,7 @@ static int CCTKi_SchedulePrintIf(int n_ifs, printf(" && "); } - printf(ifs[i]); + printf("%s", ifs[i]); } printf(")\n"); -- cgit v1.2.3