mirror of
https://github.com/postgres/postgres.git
synced 2025-05-31 00:01:57 -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;
|
||||
printfPQExpBuffer(&conn->errorMessage,
|
||||
libpq_gettext("invalid SSL protocol version range"));
|
||||
libpq_gettext("invalid SSL protocol version range\n"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1675,7 +1675,7 @@ PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn)
|
||||
if (conn->sslpassword)
|
||||
{
|
||||
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);
|
||||
buf[size-1] = '\0';
|
||||
return strlen(buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user