diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-20 01:38:35 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-20 01:38:35 +0400 |
commit | 9beef61199f4664b80f9e36617873bff7a6bb5ec (patch) | |
tree | 84f5e70e0949bb055bc98d012495f71af66fc1f4 /source/blender/modifiers/intern/MOD_meshdeform.c | |
parent | d91deb9e97d38fe3d2220255bbbc72ee1eee1124 (diff) |
Fix format string warnings (gcc) by using string literals.
gcc 4.6 was giving warnings like this:
"warning: format not a string literal and no format arguments [-Wformat-security]"
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshdeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_meshdeform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshdeform.c b/source/blender/modifiers/intern/MOD_meshdeform.c index afee0e2c79e..c8ce1b9b88a 100644 --- a/source/blender/modifiers/intern/MOD_meshdeform.c +++ b/source/blender/modifiers/intern/MOD_meshdeform.c @@ -218,7 +218,7 @@ static void meshdeformModifier_do( } if(!cagedm) { - modifier_setError(md, TIP_("Can't get mesh from cage object.")); + modifier_setError(md, "%s", TIP_("Can't get mesh from cage object.")); return; } @@ -255,7 +255,7 @@ static void meshdeformModifier_do( cagedm->release(cagedm); return; } else if (mmd->bindcagecos == NULL) { - modifier_setError(md, TIP_("Bind data missing.")); + modifier_setError(md, "%s", TIP_("Bind data missing.")); cagedm->release(cagedm); return; } |