summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: afead08)
raw | patch | inline | side by side (parent: afead08)
author | Aleksei Zakharov <zakharov.a.g@yandex.ru> | |
Thu, 12 Oct 2017 10:43:54 +0000 (10:43 +0000) | ||
committer | Aleksei Zakharov <zakharov.a.g@yandex.ru> | |
Thu, 12 Oct 2017 10:43:54 +0000 (10:43 +0000) |
src/ceph.c | patch | blob | history |
diff --git a/src/ceph.c b/src/ceph.c
index 421c7eff9dbe60eafe6e42c896a317f580699bdf..523bc75f45708a69ee7ace8e984abab8cdb707c4 100644 (file)
--- a/src/ceph.c
+++ b/src/ceph.c
cut_suffix(tmp, tmp_size, key_str, ".sum");
} else if (has_suffix(key_str, ".avgtime")) {
cut_suffix(tmp, tmp_size, key_str, ".avgtime");
+ } else {
+ sstrncpy(tmp, key_str, sizeof(tmp));
}
} else {
sstrncpy(tmp, key_str, sizeof(tmp));