diff --git a/panel-plugin/utils.c b/panel-plugin/utils.c index 8143ee7..7336034 100644 --- a/panel-plugin/utils.c +++ b/panel-plugin/utils.c @@ -113,7 +113,7 @@ char* format_byte_humanreadable(char* string, int stringsize, double number, int } /* format number first */ - snprintf(formatstring, BUFSIZ, "%%%d.%df\t",6, digits); + snprintf(formatstring, BUFSIZ, "%%.%df", digits); snprintf(buffer, BUFSIZ, formatstring, number_displayed); /* get the number of integer characters */