diff options
Diffstat (limited to 'src/process/do_process.cpp')
-rw-r--r-- | src/process/do_process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process/do_process.cpp b/src/process/do_process.cpp index 8f73083..c81b0f6 100644 --- a/src/process/do_process.cpp +++ b/src/process/do_process.cpp @@ -870,7 +870,7 @@ void process_update_display(void) if (!show_power) strcpy(power, " "); sprintf(name, "%s", all_power[i]->type()); - while (mbstowcs(NULL,name,0) < 14) strcat(name, " "); + while (mbstowcs(NULL,name,20) < 14) strcat(name, " "); if (all_power[i]->events() == 0 && all_power[i]->usage() == 0 && all_power[i]->Witts() == 0) @@ -883,7 +883,7 @@ void process_update_display(void) else sprintf(usage, "%5i%s", (int)all_power[i]->usage(), all_power[i]->usage_units()); } - while (mbstowcs(NULL,usage,0) < 14) strcat(usage, " "); + while (mbstowcs(NULL,usage,20) < 14) strcat(usage, " "); sprintf(events, "%5.1f", all_power[i]->events()); if (!all_power[i]->show_events()) events[0] = 0; |