summaryrefslogtreecommitdiff
path: root/extra/mariabackup/xbcloud.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2023-02-06 17:55:01 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2023-02-06 17:55:01 +0200
commitff12a5b8977439da0675ecb9e8be1d215549d4a3 (patch)
tree2f570fc5db131e05170f35bcf39e5a164c5f05cf /extra/mariabackup/xbcloud.cc
parentf6da6b249e551cb606005e7a353883d252cba84b (diff)
parentf8a85af8ca1c937b8d4f847477bd282f80251cde (diff)
downloadmariadb-git-ff12a5b8977439da0675ecb9e8be1d215549d4a3.tar.gz
Merge mariadb-10.5.19 into 10.5
Diffstat (limited to 'extra/mariabackup/xbcloud.cc')
-rw-r--r--extra/mariabackup/xbcloud.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/extra/mariabackup/xbcloud.cc b/extra/mariabackup/xbcloud.cc
index fed937be834..cee76e5f3d7 100644
--- a/extra/mariabackup/xbcloud.cc
+++ b/extra/mariabackup/xbcloud.cc
@@ -1676,8 +1676,11 @@ container_list_add_object(container_list *list, const char *name,
list->object_count += object_count_step;
}
assert(list->idx <= list->object_count);
- strcpy(list->objects[list->idx].name, name);
- strcpy(list->objects[list->idx].hash, hash);
+ safe_strcpy(list->objects[list->idx].name,
+ sizeof(list->objects[list->idx].name), name);
+ safe_strcpy(list->objects[list->idx].hash,
+ sizeof(list->objects[list->idx].hash), hash);
+
list->objects[list->idx].bytes = bytes;
++list->idx;
}