<div dir="ltr">The attachment.bin from that link is 115 lines, but does not have a newline at the end of the 115th line.  There have been a lot of versions of "patch" commands, and not all of them may be equally tolerant.<div><br></div><div>You could try getting a fresh copy of attachment.bin, and then modifying it by adding the newline</div><div>echo >>attachment.bin</div><div><br></div><div>and then using that.</div><div><br></div><div>I don't recall having any problems, but I'm working on a Mac, which may have a different version of "patch" than what you're using.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 9:40 AM, Matthew Daubenspeck <span dir="ltr"><<a href="mailto:matt@oddprocess.org" target="_blank">matt@oddprocess.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Mar 18, 2016 at 11:28:40AM -0800, John Thurston wrote:<br>
> >patching file xymonnet/contest.c<br>
> >patching file configure.server<br>
> >patching file build/ssl.sh<br>
> >patching file build/test-ssl3.c<br>
> >patching file build/Makefile.test-ssl3<br>
> >patch unexpectedly ends in middle of line<br>
> >patch: **** malformed patch at line 114:<br>
> ><br>
> >Did I patch it wrong?<br>
><br>
> I suspect you have a truncated patch file.<br>
> The attached text is 115 lines long.<br>
<br>
</span>I must be doing something wrong then. I downloaded the patch directly<br>
from the user list archives, and get the same error. Line 115 has<br>
nothing but a + and a blank line. I tried the patch attachment via mutt,<br>
and downloading it via here:<br>
<br>
<a href="http://lists.xymon.com/archive/2016-March/043228.html" rel="noreferrer" target="_blank">http://lists.xymon.com/archive/2016-March/043228.html</a><br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br></div>