From e4b20f0180858aaeec9f057e8cc473a01e1e5280 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 26 Dec 2008 14:19:25 +0000 Subject: 2.5: various warning fixes. There was one actual bug in a few different places, using sprintf with strings like ID names as the format string (note that this name can contain a % character). --- source/blender/render/intern/source/pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/render') diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c index 2d7d954b70d..21a06fdd794 100644 --- a/source/blender/render/intern/source/pipeline.c +++ b/source/blender/render/intern/source/pipeline.c @@ -157,7 +157,7 @@ static void stats_background(RenderStats *rs) else spos+= sprintf(spos, "Sce: %s Ve:%d Fa:%d La:%d", G.scene->id.name+2, rs->totvert, rs->totface, rs->totlamp); } - printf(str); printf("\n"); + printf("%s\n", str); } void RE_FreeRenderResult(RenderResult *res) -- cgit v1.2.3