fix!: do not replace a hyphen in the chart name with an underscore (#12812)
Ilya Mashchenko committed
May 4, 2022 at 13:49 UTC
e652e6054e6986cd1a6a5e91e5bf836a172955dc
1 file changed
+1
-1
database/rrdset.c
+1
-1
@@ -125,7 +125,7 @@ char *rrdset_strncpyz_name(char *to, const char *from, size_t length) {
125
char c, *p = to;
126
127
while (length-- && (c = *from++)) {
128
- if(c != '.' && !isalnum(c))
128
+ if(c != '.' && c != '-' && !isalnum(c))
129
c = '_';
130
131
*p++ = c;