diff options
Diffstat (limited to 'linux/Battery.c')
-rw-r--r-- | linux/Battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/Battery.c b/linux/Battery.c index ebf20372..572bad48 100644 --- a/linux/Battery.c +++ b/linux/Battery.c @@ -50,7 +50,7 @@ static unsigned long int parseBatInfo(const char *fileName, const unsigned short char* entryName = dirEntry->d_name; if (strncmp(entryName, "BAT", 3)) continue; - batteries[nBatteries] = strdup(entryName); + batteries[nBatteries] = xStrdup(entryName); nBatteries++; } closedir(batteryDir); |