| version 1.33, 2000/06/02 13:13:07 |
version 1.33.2.2, 2002/04/17 11:32:47 |
| Line 708 cgetmatch(buf, name) |
|
| Line 708 cgetmatch(buf, name) |
|
| /* |
/* |
| * Match failed, skip to next name in record. |
* Match failed, skip to next name in record. |
| */ |
*/ |
| bp--; /* a '|' or ':' may have stopped the match */ |
if (bp > buf) |
| |
bp--; /* a '|' or ':' may have stopped the match */ |
| |
else |
| |
return (-1); |
| for (;;) |
for (;;) |
| if (*bp == '\0' || *bp == ':') |
if (*bp == '\0' || *bp == ':') |
| return (-1); /* match failed totally */ |
return (-1); /* match failed totally */ |
| Line 819 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 850 cgetnext(bp, db_array) |
|
| Line 855 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 == ':') |