diff options
author | David Goulet <dgoulet@torproject.org> | 2021-05-12 13:24:22 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-05-12 13:24:22 -0400 |
commit | e3f5dc1fd35f14196f351a8b3a5f66f872c02fcf (patch) | |
tree | bb11ca405f60fd4e919e5988065217255f853c09 /src/lib/metrics | |
parent | 22861c2f4083e7e29a732a4907c2dcadd6a6a4db (diff) | |
download | tor-e3f5dc1fd35f14196f351a8b3a5f66f872c02fcf.tar.gz tor-e3f5dc1fd35f14196f351a8b3a5f66f872c02fcf.zip |
metrics: Need to surround label value with double quotes
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/lib/metrics')
-rw-r--r-- | src/lib/metrics/metrics_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |