diff options
author | hinder <hinder@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-11-20 13:12:36 +0000 |
---|---|---|
committer | hinder <hinder@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-11-20 13:12:36 +0000 |
commit | 37acc03c7c5cbf8901dc0af9cbe16acbe4e96237 (patch) | |
tree | 65533de4cf163589fa0bde03272811673392ea02 | |
parent | 62e7b6fe75a56cd03af37a6e4a64aa658d355466 (diff) |
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
-rw-r--r-- | src/main/ScheduleInterface.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |