patch unexpectedly ends in middle of line
I bet you did not put and end of line ('
\n') character at the end of the last
line when you pasted from the code snipset above...
I noticed in Scite, the patch file looks like it uses
spaces while adesklets.c seems to be using tabs for
indention, I don't know if this makes a different or not. I
tried replacing the spaces with tabs and had no luck.
GNU diff/patch are incredibly resilient to a lot of abuses,
including tab/space mixing (see
-l/
--ignore-whitespace) in GNU patch
manual. This said, I verified the above patch to perfectly
match the code and to still work.
I don't know how patch files work to maybe try a
solution.
Unified format is really simple and easy to read (given
human-readable description is about one paragraph long). In
this specific case, you should have no problem either to
figure things out manually.