fix for incorrect null check in RE_engine_update_stats
authorCampbell Barton <ideasman42@gmail.com>
Fri, 26 Jul 2013 10:11:18 +0000 (10:11 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 26 Jul 2013 10:11:18 +0000 (10:11 +0000)
source/blender/render/intern/source/external_engine.c

index 616dd623b948304b8d420bfc30189140fd814391..ea22423985bd0ced6fc17a048cda84cea0f4924e 100644 (file)
@@ -311,7 +311,7 @@ void RE_engine_update_stats(RenderEngine *engine, const char *stats, const char
        else if (info && info[0])
                BLI_strncpy(engine->text, info, sizeof(engine->text));
        else if (stats && stats[0])
-               BLI_strncpy(engine->text, info, sizeof(engine->text));
+               BLI_strncpy(engine->text, stats, sizeof(engine->text));
 }
 
 void RE_engine_update_progress(RenderEngine *engine, float progress)