diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-24 19:44:41 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-24 19:44:41 -0300 |
commit | 814ce89b45c8e10a5bb2c8ca458ebcc9c56cdcae (patch) | |
tree | 19692b6dee0a04807214cc6a271c0b796cb5ff09 /BatteryMeter.c | |
parent | 659251c501b0634ff49c0438970532b188633e95 (diff) |
Oops, fix use of memset.
Diffstat (limited to 'BatteryMeter.c')
-rw-r--r-- | BatteryMeter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BatteryMeter.c b/BatteryMeter.c index 76ccbdaf..4f591264 100644 --- a/BatteryMeter.c +++ b/BatteryMeter.c @@ -59,7 +59,7 @@ static unsigned long int parseBatInfo(const char *fileName, const unsigned short #define MAX_BATTERIES 64 char* batteries[MAX_BATTERIES]; unsigned int nBatteries = 0; - memset(batteries, MAX_BATTERIES, sizeof (char*)); + memset(batteries, 0, MAX_BATTERIES * sizeof(char*)); struct dirent result; struct dirent* dirEntry; |