]> git.webhop.me Git - lcd4linux.git/commitdiff
strdupa uses alloca which is not available everywhere. strdup is used instead
authorvolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 15 Jan 2010 21:36:33 +0000 (21:36 +0000)
committervolker <volker@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 15 Jan 2010 21:36:33 +0000 (21:36 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1078 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

plugin_i2c_sensors.c

index 14fcfa23b0e82f12079a544cfe06792f9d51d489..71cbe3e5668c3407c558e882c36e87dae3800b08 100644 (file)
@@ -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); */