Commit 8810b1ec authored by Andrew Hutchings's avatar Andrew Hutchings Committed by Andrew Hutchings

Fix Connect compile issue

parent 2ff01e76
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment