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 ...@@ -167,7 +167,7 @@ bool JAVAConn::gmID(PGLOBAL g, jmethodID& mid, const char *name, const char *sig
mid = env->GetMethodID(jdi, name, sig); mid = env->GetMethodID(jdi, name, sig);
if (Check()) { if (Check()) {
snprintf(g->Message, sizeof(g->Message), Msg); snprintf(g->Message, sizeof(g->Message), "%s", Msg);
return true; return true;
} else } else
return false; return false;
......
...@@ -113,7 +113,7 @@ bool JMGDISC::ColDesc(PGLOBAL g, jobject obj, char *pcn, char *pfmt, ...@@ -113,7 +113,7 @@ bool JMGDISC::ColDesc(PGLOBAL g, jobject obj, char *pcn, char *pfmt,
z = 65 - strlen(colname); z = 65 - strlen(colname);
strncat(strncat(colname, "_", z), key, z - 1); strncat(strncat(colname, "_", z), key, z - 1);
} else } else
snprintf(colname, sizeof(colname), key); snprintf(colname, sizeof(colname), "%s", key);
if (pfmt) { if (pfmt) {
strncpy(fmt, pfmt, 128); strncpy(fmt, pfmt, 128);
...@@ -121,7 +121,7 @@ bool JMGDISC::ColDesc(PGLOBAL g, jobject obj, char *pcn, char *pfmt, ...@@ -121,7 +121,7 @@ bool JMGDISC::ColDesc(PGLOBAL g, jobject obj, char *pcn, char *pfmt,
z = 129 - strlen(fmt); z = 129 - strlen(fmt);
strncat(strncat(fmt, ".", z), key, z - 1); strncat(strncat(fmt, ".", z), key, z - 1);
} else } else
snprintf(fmt, sizeof(fmt), key); snprintf(fmt, sizeof(fmt), "%s", key);
if (!jres) { if (!jres) {
bcol.Type = n[0]; 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