From: David Goulet Date: Wed, 12 May 2021 17:24:22 +0000 (-0400) Subject: metrics: Need to surround label value with double quotes X-Git-Tag: tor-0.4.7.1-alpha~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3f5dc1fd35f14196f351a8b3a5f66f872c02fcf;p=thirdparty%2Ftor.git metrics: Need to surround label value with double quotes Signed-off-by: David Goulet --- diff --git a/src/lib/metrics/metrics_common.c b/src/lib/metrics/metrics_common.c index c0352b6646..f3f7e22d88 100644 --- a/src/lib/metrics/metrics_common.c +++ b/src/lib/metrics/metrics_common.c @@ -37,6 +37,6 @@ const char * metrics_format_label(const char *key, const char *value) { static char buf[128]; - tor_snprintf(buf, sizeof(buf), "%s=%s", key, value); + tor_snprintf(buf, sizeof(buf), "%s=\"%s\"", key, value); return buf; }