PS: Like most people, I feel it's bad form to put essential information
in the subject line and not repeat it in the body.
> Subject: patch unexpectedly ends in middle of line
The answer is contained here, at least as applied
to diff:
http://en.wikipedia.org/wiki/Diff#Unified_format
Presumably patch also complains if the last line
doesn't end in a newline.
FYI
xanthian.