diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-24 08:09:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-24 08:09:46 +0300 |
commit | 16694ed408a533fcf275db8f92a5d0c7c0cbd854 (patch) | |
tree | 98ff1da567ee52d58cadf455e443d99536437c1f /source/blender/draw/intern/draw_manager_profiling.c | |
parent | 79f67acccb36fd67f534b75f1d0f7e0799080c24 (diff) |
Cleanup: redundant use of string formatting functions
Diffstat (limited to 'source/blender/draw/intern/draw_manager_profiling.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager_profiling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager_profiling.c b/source/blender/draw/intern/draw_manager_profiling.c index 1ce0a92c978..03811688982 100644 --- a/source/blender/draw/intern/draw_manager_profiling.c +++ b/source/blender/draw/intern/draw_manager_profiling.c @@ -317,7 +317,7 @@ void DRW_stats_draw(rcti *rect) v += 1; /* GPU Timings */ - BLI_snprintf(stat_string, sizeof(stat_string), "GPU Render Timings"); + BLI_strncpy(stat_string, "GPU Render Timings", sizeof(stat_string)); draw_stat(rect, 0, v++, stat_string, sizeof(stat_string)); for (int i = 0; i < DTP.timer_increment; ++i) { |