]> granicus.if.org Git - postgresql/commitdiff
libpq: add newlines to SSPI error messages
authorBruce Momjian <bruce@momjian.us>
Wed, 8 Apr 2015 14:28:47 +0000 (10:28 -0400)
committerBruce Momjian <bruce@momjian.us>
Wed, 8 Apr 2015 14:28:47 +0000 (10:28 -0400)
Report by Tom Lane

src/interfaces/libpq/fe-auth.c

index 8927df4f064a2d7fced76954c0c7207c91ae636b..08cc90601267b857c974d23cebb36cf4a2cc39e1 100644 (file)
@@ -236,10 +236,10 @@ pg_SSPI_error(PGconn *conn, const char *mprefix, SECURITY_STATUS r)
 
        if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, r, 0,
                                          sysmsg, sizeof(sysmsg), NULL) == 0)
-               printfPQExpBuffer(&conn->errorMessage, "%s: SSPI error %x",
+               printfPQExpBuffer(&conn->errorMessage, "%s: SSPI error %x\n",
                                                  mprefix, (unsigned int) r);
        else
-               printfPQExpBuffer(&conn->errorMessage, "%s: %s (%x)",
+               printfPQExpBuffer(&conn->errorMessage, "%s: %s (%x)\n",
                                                  mprefix, sysmsg, (unsigned int) r);
 }