[BACK]Return to getcap.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/getcap.c between version 1.33.2.2 and 1.33.4.1

version 1.33.2.2, 2002/04/17 11:32:47 version 1.33.4.1, 2001/10/08 20:18:55
Line 822  cgetnext(bp, db_array)
Line 822  cgetnext(bp, db_array)
                 /*                  /*
                  * Line points to a name line.                   * Line points to a name line.
                  */                   */
                 if (len > sizeof(nbuf))  
                         return -1;  
                 done = 0;                  done = 0;
                 np = nbuf;                  np = nbuf;
                 for (;;) {                  for (;;) {
Line 855  cgetnext(bp, db_array)
Line 853  cgetnext(bp, db_array)
                                         line[len - 1] = '\0';                                          line[len - 1] = '\0';
                         }                          }
                 }                  }
                 if (len > sizeof(buf))  
                         return -1;  
                 rp = buf;                  rp = buf;
                 for(cp = nbuf; *cp != '\0'; cp++)                  for(cp = nbuf; *cp != '\0'; cp++)
                         if (*cp == '|' || *cp == ':')                          if (*cp == '|' || *cp == ':')

Legend:
Removed from v.1.33.2.2  
changed lines
  Added in v.1.33.4.1

CVSweb <webmaster@jp.NetBSD.org>