summaryrefslogtreecommitdiff
path: root/storage/connect/bsonudf.cpp
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-10-02 14:38:13 +0200
committerSergei Golubchik <serg@mariadb.org>2022-10-02 14:38:13 +0200
commit3a2116241b128b811ee2455845ff9710da3115ac (patch)
tree7de53fc50126f7a19251303bd1d2a0f6cdb42069 /storage/connect/bsonudf.cpp
parente29fb956145cfa1f4f8c41cafcddea36a20b23aa (diff)
parentd4f6d2f08f228778fd7744554d8b12be05b6a114 (diff)
downloadmariadb-git-3a2116241b128b811ee2455845ff9710da3115ac.tar.gz
Merge branch '10.4' into 10.5
Diffstat (limited to 'storage/connect/bsonudf.cpp')
-rw-r--r--storage/connect/bsonudf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/connect/bsonudf.cpp b/storage/connect/bsonudf.cpp
index 531894a68cc..f5fe6475639 100644
--- a/storage/connect/bsonudf.cpp
+++ b/storage/connect/bsonudf.cpp
@@ -1146,7 +1146,7 @@ my_bool BJNX::LocateArray(PGLOBAL g, PBVAL jarp)
for (int i = 0; i < n && !Found; i++) {
Jp->N = m;
- sprintf(s, "[%d]", i + B);
+ snprintf(s, sizeof(s), "[%d]", i + B);
if (Jp->WriteStr(s))
return true;
@@ -1440,7 +1440,7 @@ my_bool BJNX::AddPath(void)
for (int i = 0; i <= I; i++) {
if (Jpnp[i].Type == TYPE_JAR) {
- sprintf(s, "[%d]", Jpnp[i].N + B);
+ snprintf(s, sizeof(s), "[%d]", Jpnp[i].N + B);
if (Jp->WriteStr(s))
return true;