mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Fix Connect compile issue
This commit is contained in:
parent
2ff01e763e
commit
8810b1ecf1
2 changed files with 3 additions and 3 deletions
|
@ -167,7 +167,7 @@ bool JAVAConn::gmID(PGLOBAL g, jmethodID& mid, const char *name, const char *sig
|
|||
mid = env->GetMethodID(jdi, name, sig);
|
||||
|
||||
if (Check()) {
|
||||
snprintf(g->Message, sizeof(g->Message), Msg);
|
||||
snprintf(g->Message, sizeof(g->Message), "%s", Msg);
|
||||
return true;
|
||||
} else
|
||||
return false;
|
||||
|
|
|
@ -113,7 +113,7 @@ bool JMGDISC::ColDesc(PGLOBAL g, jobject obj, char *pcn, char *pfmt,
|
|||
z = 65 - strlen(colname);
|
||||
strncat(strncat(colname, "_", z), key, z - 1);
|
||||
} else
|
||||
snprintf(colname, sizeof(colname), key);
|
||||
snprintf(colname, sizeof(colname), "%s", key);
|
||||
|
||||
if (pfmt) {
|
||||
strncpy(fmt, pfmt, 128);
|
||||
|
@ -121,7 +121,7 @@ bool JMGDISC::ColDesc(PGLOBAL g, jobject obj, char *pcn, char *pfmt,
|
|||
z = 129 - strlen(fmt);
|
||||
strncat(strncat(fmt, ".", z), key, z - 1);
|
||||
} else
|
||||
snprintf(fmt, sizeof(fmt), key);
|
||||
snprintf(fmt, sizeof(fmt), "%s", key);
|
||||
|
||||
if (!jres) {
|
||||
bcol.Type = n[0];
|
||||
|
|
Loading…
Reference in a new issue