diff options
Diffstat (limited to 'plugins/utils.c')
-rw-r--r-- | plugins/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index 5dbdb4de..ec254739 100644 --- a/plugins/utils.c +++ b/plugins/utils.c @@ -521,8 +521,8 @@ char *perfdata (const char *label, { char *data = NULL; - if (index (label, '"')) - asprintf (&data, "\"%s\"=%ld%s;", label, val, uom); + if (strpbrk (label, "'= ")) + asprintf (&data, "'%s'=%ld%s;", label, val, uom); else asprintf (&data, "%s=%ld%s;", label, val, uom); |