Page MenuHomeFreeBSD

D26081.id75877.diff
No OneTemporary

D26081.id75877.diff

Index: usr.bin/patch/pch.c
===================================================================
--- usr.bin/patch/pch.c
+++ usr.bin/patch/pch.c
@@ -587,16 +587,11 @@
len = pgets(true);
p_input_line++;
if (len == 0) {
- if (p_max - p_end < 4) {
- /* assume blank lines got chopped */
- strlcpy(buf, " \n", buf_size);
- } else {
- if (repl_beginning && repl_could_be_missing) {
- repl_missing = true;
- goto hunk_done;
- }
- fatal("unexpected end of file in patch\n");
+ if (repl_beginning && repl_could_be_missing) {
+ repl_missing = true;
+ goto hunk_done;
}
+ fatal("unexpected end of file in patch\n");
}
p_end++;
if (p_end >= hunkmax)

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 21, 9:31 PM (2 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25808324
Default Alt Text
D26081.id75877.diff (717 B)

Event Timeline