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

Diff for /src/usr.bin/cvs/diff.c between version 1.56 and 1.57

version 1.56, 2005/10/05 23:11:06 version 1.57, 2005/10/07 21:47:32
Line 1353 
Line 1353 
                         struct context_vec *tmp;                          struct context_vec *tmp;
                         ptrdiff_t offset = context_vec_ptr - context_vec_start;                          ptrdiff_t offset = context_vec_ptr - context_vec_start;
                         max_context <<= 1;                          max_context <<= 1;
                         if ((tmp = realloc(context_vec_start,                          if ((tmp = realloc(context_vec_start, max_context *
                             max_context * sizeof(struct context_vec))) == NULL) {                              sizeof(struct context_vec))) == NULL) {
                                 free(context_vec_start);                                  free(context_vec_start);
                                 context_vec_start = NULL;                                  context_vec_start = NULL;
                                 cvs_log(LP_ERRNO,                                  cvs_log(LP_ERRNO,
Line 1592 
Line 1592 
                         if (p != NULL)                          if (p != NULL)
                                 *p = '\0';                                  *p = '\0';
                         if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') {                          if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') {
                                 strlcpy(lastbuf, (const char *)buf, sizeof lastbuf);                                  strlcpy(lastbuf, (const char *)buf,
                                       sizeof lastbuf);
                                 lastmatchline = pos;                                  lastmatchline = pos;
                                 return lastbuf;                                  return lastbuf;
                         }                          }

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57