summaryrefslogtreecommitdiffstats
path: root/database/rrdset.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-18 14:38:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-18 14:38:05 +0000
commitab2714ee67d23dc115edfc0e2bb82ab88cc17b57 (patch)
treebb9dd1e8750fea4bea85e590e36ca636f9128ad2 /database/rrdset.c
parentAdding upstream version 1.39.0. (diff)
downloadnetdata-ab2714ee67d23dc115edfc0e2bb82ab88cc17b57.tar.xz
netdata-ab2714ee67d23dc115edfc0e2bb82ab88cc17b57.zip
Adding upstream version 1.39.1.upstream/1.39.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--database/rrdset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/rrdset.c b/database/rrdset.c
index 2843bb330..3177f43ff 100644
--- a/database/rrdset.c
+++ b/database/rrdset.c
@@ -2207,7 +2207,7 @@ bool rrdset_memory_load_or_create_map_save(RRDSET *st, RRD_MEMORY_MODE memory_mo
memset(st_on_file, 0, size);
// set the values we need
- strncpyz(st_on_file->id, rrdset_id(st), RRD_ID_LENGTH_MAX_V019 + 1);
+ strncpyz(st_on_file->id, rrdset_id(st), RRD_ID_LENGTH_MAX_V019);
strcpy(st_on_file->cache_filename, fullfilename);
strcpy(st_on_file->magic, RRDSET_MAGIC_V019);
st_on_file->memsize = size;