Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131934432
D26081.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
732 B
Referenced Files
None
Subscribers
None
D26081.id.diff
View Options
Index: head/usr.bin/patch/pch.c
===================================================================
--- head/usr.bin/patch/pch.c
+++ head/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
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 13, 8:03 AM (13 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23665573
Default Alt Text
D26081.id.diff (732 B)
Attached To
Mode
D26081: Remove heuristic for dealing with trailing newlines being truncated by mailers.
Attached
Detach File
Event Timeline
Log In to Comment