Use SAFE_BUF_ADDCHAR where appropriate.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 8 Dec 2002 13:14:23 +0000 (13:14 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 8 Dec 2002 13:14:23 +0000 (13:14 +0000)
gedcom/gedcom.y

index 9cf156aa39016c9993bb01061c0b66397eb47052..702d1256dcba2c8f921ce3074776e0bc1f2c91d0 100644 (file)
@@ -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, $<ctxt>$)              
                 }
                  obje_blob_subs
@@ -1992,7 +1991,7 @@ addr_cont_sect : OPEN DELIM TAG_CONT mand_line_item
                  { $<ctxt>$ = 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, $<ctxt>$)               
                  }               
@@ -2270,7 +2269,7 @@ cont_sect : OPEN DELIM TAG_CONT mand_line_item
             { $<ctxt>$ = 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, $<ctxt>$)  
             }