[BACK]Return to rcs.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/rcs.c between version 1.317 and 1.318

version 1.317, 2017/05/31 16:31:55 version 1.318, 2017/08/28 18:52:25
Line 2463 
Line 2463 
                                  * trailing whitespaces of our prefix.                                   * trailing whitespaces of our prefix.
                                  */                                   */
                                 lp = xcalloc(1, sizeof(*lp));                                  lp = xcalloc(1, sizeof(*lp));
                                 lp->l_line = xcalloc(strlen(sprefix) +                                  xasprintf((char **)&lp->l_line, "%s%s",
                                     line->l_line + line->l_len - end + 1, 1);                                      sprefix, end);
                                 strlcpy(lp->l_line, sprefix,  
                                     strlen(sprefix) + 1);  
                                 memcpy(lp->l_line + strlen(sprefix),  
                                     end, line->l_line + line->l_len - end);  
                                 lp->l_len = strlen(lp->l_line);                                  lp->l_len = strlen(lp->l_line);
                                 TAILQ_INSERT_AFTER(&(lines->l_lines), cur, lp,                                  TAILQ_INSERT_AFTER(&(lines->l_lines), cur, lp,
                                     l_list);                                      l_list);

Legend:
Removed from v.1.317  
changed lines
  Added in v.1.318