summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a1b300)
raw | patch | inline | side by side (parent: 4a1b300)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 28 Aug 2003 03:53:12 +0000 (03:53 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 28 Aug 2003 03:53:12 +0000 (03:53 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@702 f882894a-f735-0410-b71e-b25c423dba1c
plugins/utils.c | patch | blob | history |
diff --git a/plugins/utils.c b/plugins/utils.c
index 5dbdb4de0c7f4beaa4233facade3beccfcf6e0a0..ec2547392c0665c5acd1b1632ee84d9ef8837458 100644 (file)
--- a/plugins/utils.c
+++ b/plugins/utils.c
{
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);