[BACK]Return to tbl_data.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/tbl_data.c between version 1.30 and 1.32

version 1.30, 2014/04/20 16:46:05 version 1.32, 2014/08/10 23:54:41
Line 15 
Line 15 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
 #ifdef HAVE_CONFIG_H  
 #include "config.h"  #include "config.h"
 #endif  
   
   #include <sys/types.h>
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 167  tbl_cdata(struct tbl_node *tbl, int ln, const char *p)
Line 167  tbl_cdata(struct tbl_node *tbl, int ln, const char *p)
         if (dat->string) {          if (dat->string) {
                 sz = strlen(p) + strlen(dat->string) + 2;                  sz = strlen(p) + strlen(dat->string) + 2;
                 dat->string = mandoc_realloc(dat->string, sz);                  dat->string = mandoc_realloc(dat->string, sz);
                 strlcat(dat->string, " ", sz);                  (void)strlcat(dat->string, " ", sz);
                 strlcat(dat->string, p, sz);                  (void)strlcat(dat->string, p, sz);
         } else          } else
                 dat->string = mandoc_strdup(p);                  dat->string = mandoc_strdup(p);
   

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.32

CVSweb