diff options
author | volker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-01-15 21:36:33 +0000 |
---|---|---|
committer | volker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-01-15 21:36:33 +0000 |
commit | ac266e1877dfa2042a00b239ac184ce40e538770 (patch) | |
tree | 2756f5c55e647f3e4b628893b884c018af6d9412 | |
parent | 55e86007a4860af150cf3a8613e49294183c6b8e (diff) | |
download | lcd4linux-ac266e1877dfa2042a00b239ac184ce40e538770.tar.gz |
strdupa uses alloca which is not available everywhere. strdup is used instead
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1078 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | plugin_i2c_sensors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin_i2c_sensors.c b/plugin_i2c_sensors.c index 14fcfa2..71cbe3e 100644 --- a/plugin_i2c_sensors.c +++ b/plugin_i2c_sensors.c @@ -44,7 +44,7 @@ /* * Available tokens : # represents an int from 1 to 3 (or more) - * temp_input# -> temperature of sensor # (in °C) + * temp_input# -> temperature of sensor # (in ∞C) * temp_max# and temp_hyst# -> max and min of sensor # * in_input#, in_min# and in_max# -> voltages * fan_input# -> speed (in RPM) of fan # @@ -188,7 +188,7 @@ static int parse_i2c_sensors_procfs(const char *key) return -1; } - running = strdupa(buffer); + running = strdup(buffer); while (1) { value = strsep(&running, delim); /* debug("%s pos %i -> %s", file, pos , value); */ |