1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-25 01:02:05 +03:00

Add missing newlines in error messages

This commit is contained in:
Peter Eisentraut
2020-05-03 10:45:52 +02:00
parent 9dc7251417
commit 7dd777938b
2 changed files with 2 additions and 2 deletions

View File

@ -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);