Code

libcollectdclient: Fixed handling of ‘U’ (undef) in ‘PUTVAL’.
authorSebastian Harl <sh@tokkee.org>
Mon, 9 Aug 2010 20:03:02 +0000 (22:03 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 9 Aug 2010 20:03:02 +0000 (22:03 +0200)
src/libcollectdclient/client.c

index 0c748ba7fa47e3b30f1d2a8d5c30dffdfd70d3e3..75ac7b6da0b96c1d901007ab8dd1f2d4c0470e06 100644 (file)
@@ -788,7 +788,7 @@ int lcc_putval (lcc_connection_t *c, const lcc_value_list_t *vl) /* {{{ */
     else if (vl->values_types[i] == LCC_TYPE_GAUGE)
     {
       if (isnan (vl->values[i].gauge))
-        SSTRCPY (command, ":U");
+        SSTRCATF (command, ":U");
       else
         SSTRCATF (command, ":%g", vl->values[i].gauge);
     }