mirror of
https://github.com/postgres/postgres.git
synced 2025-06-02 00:01:40 -04:00
Add missing newlines in error messages
This commit is contained in:
parent
9dc7251417
commit
7dd777938b
@ -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)
|
|||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user