Browse Source

Fix Connect compile issue

pull/2640/head
Andrew Hutchings 2 years ago
committed by Andrew Hutchings
parent
commit
8810b1ecf1
  1. 2
      storage/connect/javaconn.cpp
  2. 4
      storage/connect/tabjmg.cpp

2
storage/connect/javaconn.cpp

@ -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;

4
storage/connect/tabjmg.cpp

@ -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…
Cancel
Save