1010 * exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
1111 *
1212 * IDENTIFICATION
13- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.52 2001/08/1703:09:31 momjian Exp $
13+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.53 2001/08/1715:02:18 momjian Exp $
1414 *
1515 *-------------------------------------------------------------------------
1616 */
@@ -285,7 +285,7 @@ pg_krb5_init(char *PQerrormsg)
285285if (retval )
286286{
287287snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
288- "pg_krb5_init: krb5_init_context: %s" ,
288+ "pg_krb5_init: krb5_init_context: %s\n " ,
289289error_message (retval ));
290290return STATUS_ERROR ;
291291}
@@ -294,7 +294,7 @@ pg_krb5_init(char *PQerrormsg)
294294if (retval )
295295{
296296snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
297- "pg_krb5_init: krb5_cc_default: %s" ,
297+ "pg_krb5_init: krb5_cc_default: %s\n " ,
298298error_message (retval ));
299299krb5_free_context (pg_krb5_context );
300300return STATUS_ERROR ;
@@ -305,7 +305,7 @@ pg_krb5_init(char *PQerrormsg)
305305if (retval )
306306{
307307snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
308- "pg_krb5_init: krb5_cc_get_principal: %s" ,
308+ "pg_krb5_init: krb5_cc_get_principal: %s\n " ,
309309error_message (retval ));
310310krb5_cc_close (pg_krb5_context ,pg_krb5_ccache );
311311krb5_free_context (pg_krb5_context );
@@ -316,7 +316,7 @@ pg_krb5_init(char *PQerrormsg)
316316if (retval )
317317{
318318snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
319- "pg_krb5_init: krb5_unparse_name: %s" ,
319+ "pg_krb5_init: krb5_unparse_name: %s\n " ,
320320error_message (retval ));
321321krb5_free_principal (pg_krb5_context ,pg_krb5_client );
322322krb5_cc_close (pg_krb5_context ,pg_krb5_ccache );
@@ -371,7 +371,7 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
371371if (retval )
372372{
373373snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
374- "pg_krb5_sendauth: krb5_sname_to_principal: %s" ,
374+ "pg_krb5_sendauth: krb5_sname_to_principal: %s\n " ,
375375error_message (retval ));
376376return STATUS_ERROR ;
377377}
@@ -385,7 +385,7 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
385385if (flags < 0 || fcntl (sock ,F_SETFL , (long ) (flags & ~O_NONBLOCK )))
386386{
387387snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
388- libpq_gettext ("could not set socket to blocking mode: %s" ),strerror (errno ));
388+ libpq_gettext ("could not set socket to blocking mode: %s\n " ),strerror (errno ));
389389krb5_free_principal (pg_krb5_context ,server );
390390return STATUS_ERROR ;
391391}
@@ -401,14 +401,13 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
401401if (retval == KRB5_SENDAUTH_REJECTED && err_ret )
402402{
403403snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
404- libpq_gettext ("Kerberos 5 authentication rejected: %*s" ),
404+ libpq_gettext ("Kerberos 5 authentication rejected: %*s\n " ),
405405err_ret -> text .length ,err_ret -> text .data );
406406}
407407else
408408{
409409snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
410- "krb5_sendauth: %s" ,
411- error_message (retval ));
410+ "krb5_sendauth: %s\n" ,error_message (retval ));
412411}
413412
414413if (err_ret )
@@ -422,7 +421,7 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
422421if (fcntl (sock ,F_SETFL , (long )flags ))
423422{
424423snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
425- libpq_gettext ("could not restore non-blocking mode on socket: %s" ),
424+ libpq_gettext ("could not restore non-blocking mode on socket: %s\n " ),
426425strerror (errno ));
427426ret = STATUS_ERROR ;
428427}
@@ -594,7 +593,7 @@ fe_setauthsvc(const char *name, char *PQerrormsg)
594593if (i == n_authsvcs )
595594{
596595snprintf (PQerrormsg ,PQERRORMSG_LENGTH ,
597- libpq_gettext ("invalid authentication service name \"%s\", ignored" ),
596+ libpq_gettext ("invalid authentication service name \"%s\", ignored\n " ),
598597name );
599598}
600599return ;