From: Peter Verthez Date: Sun, 8 Dec 2002 13:14:23 +0000 (+0000) Subject: Use SAFE_BUF_ADDCHAR where appropriate. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=462b1197f07aac3181b8137e6844738d6c68774c;p=gedcom-parse.git Use SAFE_BUF_ADDCHAR where appropriate. --- diff --git a/gedcom/gedcom.y b/gedcom/gedcom.y index 9cf156a..702d125 100644 --- a/gedcom/gedcom.y +++ b/gedcom/gedcom.y @@ -1329,7 +1329,6 @@ obje_blob_sect : OPEN DELIM TAG_BLOB PARENT, $1, $3, NULL, GEDCOM_MAKE_NULL(val1)); reset_buffer(&concat_buffer); - safe_buf_append(&concat_buffer, ""); START(BLOB, $1, $$) } obje_blob_subs @@ -1992,7 +1991,7 @@ addr_cont_sect : OPEN DELIM TAG_CONT mand_line_item { $$ = start_element(ELT_SUB_ADDR_CONT, PARENT, $1, $3, $4, GEDCOM_MAKE_STRING(val1, $4)); - safe_buf_append(&concat_buffer, "\n"); + SAFE_BUF_ADDCHAR(&concat_buffer, '\n'); safe_buf_append(&concat_buffer, $4); START(CONT, $1, $$) } @@ -2270,7 +2269,7 @@ cont_sect : OPEN DELIM TAG_CONT mand_line_item { $$ = start_element(ELT_SUB_CONT, PARENT, $1, $3, $4, GEDCOM_MAKE_STRING(val1, $4)); - safe_buf_append(&concat_buffer, "\n"); + SAFE_BUF_ADDCHAR(&concat_buffer, '\n'); safe_buf_append(&concat_buffer, $4); START(CONT, $1, $$) }