From f7b7f4752136dc40686676194a2895d82fe6018e Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Thu, 12 Sep 2002 19:30:49 +0000 Subject: [PATCH] Removed newlines from error strings. --- gedcom/interface.c | 4 ++-- gedcom/message.c | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gedcom/interface.c b/gedcom/interface.c index 8131341..061ec4f 100644 --- a/gedcom/interface.c +++ b/gedcom/interface.c @@ -42,7 +42,7 @@ void gedcom_subscribe_to_record(Gedcom_rec rec, Gedcom_rec_end_cb cb_end) { if (record_start_callback[rec] || record_end_callback[rec]) - gedcom_error(_("Internal error: Duplicate registration for record type %d\n"), rec); + gedcom_error(_("Internal error: Duplicate registration for record type %d"), rec); if (cb_start) { record_start_callback[rec] = cb_start; record_end_callback[rec] = cb_end; @@ -54,7 +54,7 @@ void gedcom_subscribe_to_element(Gedcom_elt elt, Gedcom_elt_end_cb cb_end) { if (element_start_callback[elt] || element_end_callback[elt]) - gedcom_error(_("Internal error: Duplicate registration for element type %d\n"), elt); + gedcom_error(_("Internal error: Duplicate registration for element type %d"), elt); if (cb_start) { element_start_callback[elt] = cb_start; element_end_callback[elt] = cb_end; diff --git a/gedcom/message.c b/gedcom/message.c index 23d5c86..c3a5abf 100644 --- a/gedcom/message.c +++ b/gedcom/message.c @@ -49,9 +49,11 @@ void init_mess_buffer() mess_buffer[0] = '\0'; bufsize = INITIAL_BUF_SIZE; } - else - fprintf(stderr, _("Could not allocate memory at %s, %d\n"), + else { + fprintf(stderr, _("Could not allocate memory at %s, %d"), __FILE__, __LINE__); + fprintf(stderr, "\n"); + } } } -- 2.30.2