[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 01/01: Get size of pointer from array, not fixed type name
noreply at xfce.org
noreply at xfce.org
Sat Nov 22 21:51:58 CET 2014
This is an automated email from the git hooks/post-receive script.
mmassonnet pushed a commit to branch master
in repository panel-plugins/xfce4-netload-plugin.
commit 9da72fc4cc9ba9eb2fb5ae81a42b4b765cf5694f
Author: Mike Massonnet <m8t at gandi.net>
Date: Sat Nov 22 21:51:47 2014 +0100
Get size of pointer from array, not fixed type name
---
panel-plugin/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/panel-plugin/utils.c b/panel-plugin/utils.c
index c262f87..7336034 100644
--- a/panel-plugin/utils.c
+++ b/panel-plugin/utils.c
@@ -106,7 +106,7 @@ char* format_byte_humanreadable(char* string, int stringsize, double number, int
}
/* calculate number and appropriate unit size for display */
- while(number_displayed >= thousand_divider && uidx < (sizeof(unit_names) / sizeof(char*) - 1))
+ while(number_displayed >= thousand_divider && uidx < (sizeof(unit_names) / sizeof(unit_names[0]) - 1))
{
number_displayed /= thousand_divider;
uidx++;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list