Commit 7dd77793 authored by Peter Eisentraut's avatar Peter Eisentraut

Add missing newlines in error messages

parent 9dc72514
...@@ -1333,7 +1333,7 @@ connectOptions2(PGconn *conn) ...@@ -1333,7 +1333,7 @@ connectOptions2(PGconn *conn)
{ {
conn->status = CONNECTION_BAD; conn->status = CONNECTION_BAD;
printfPQExpBuffer(&conn->errorMessage, printfPQExpBuffer(&conn->errorMessage,
libpq_gettext("invalid SSL protocol version range")); libpq_gettext("invalid SSL protocol version range\n"));
return false; return false;
} }
......
...@@ -1675,7 +1675,7 @@ PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn) ...@@ -1675,7 +1675,7 @@ PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn)
if (conn->sslpassword) if (conn->sslpassword)
{ {
if (strlen(conn->sslpassword) + 1 > size) if (strlen(conn->sslpassword) + 1 > size)
fprintf(stderr, libpq_gettext("WARNING: sslpassword truncated")); fprintf(stderr, libpq_gettext("WARNING: sslpassword truncated\n"));
strncpy(buf, conn->sslpassword, size); strncpy(buf, conn->sslpassword, size);
buf[size-1] = '\0'; buf[size-1] = '\0';
return strlen(buf); return strlen(buf);
......
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