version 1.9, 1998/11/25 00:30:26 |
version 1.10, 1999/12/04 01:01:07 |
|
|
p_input_line++; |
p_input_line++; |
if (ret == Nullch) { |
if (ret == Nullch) { |
if (p_max - p_end < 4) |
if (p_max - p_end < 4) |
Strcpy(buf, " \n"); /* assume blank lines got chopped */ |
strcpy(buf, " \n"); /* assume blank lines got chopped */ |
else { |
else { |
if (repl_beginning && repl_could_be_missing) { |
if (repl_beginning && repl_could_be_missing) { |
repl_missing = TRUE; |
repl_missing = TRUE; |
|
|
if (!*s) |
if (!*s) |
malformed (); |
malformed (); |
if (strnEQ(s,"0,0",3)) |
if (strnEQ(s,"0,0",3)) |
strcpy(s,s+2); |
strcpy(s, s+2); |
p_first = (LINENUM) atol(s); |
p_first = (LINENUM) atol(s); |
while (isdigit(*s)) s++; |
while (isdigit(*s)) s++; |
if (*s == ',') { |
if (*s == ',') { |
|
|
p_input_line++; |
p_input_line++; |
if (ret == Nullch) { |
if (ret == Nullch) { |
if (p_max - filldst < 3) |
if (p_max - filldst < 3) |
Strcpy(buf, " \n"); /* assume blank lines got chopped */ |
strcpy(buf, " \n"); /* assume blank lines got chopped */ |
else { |
else { |
fatal1("unexpected end of file in patch\n"); |
fatal1("unexpected end of file in patch\n"); |
} |
} |
|
|
else |
else |
indent++; |
indent++; |
} |
} |
if (buf != s) |
if (buf != s && strlcpy(buf, s, sizeof(buf)) >= sizeof(buf)) |
Strcpy(buf, s); |
fatal1("buffer too small in pgets()\n"); |
} |
} |
return ret; |
return ret; |
} |
} |