The two patches in the following link are exactly what I sent,
and work for me:
http://listengine.tuxfamily.org/lists.tuxfamily.org/hatari-devel/2012/03/msg00097.html
The only lines that I hand edit are the ones containing the
path to the file, before the first hunk. eg.
--- hatari/src/includes/ym2149_fixed_vol.h 2012-03-16 15:25:07.000000000 -0700
To test that the missing line is Not my fault, I patched an
old version of both sound.c and ym2149_fixed_vol.h with
the patch I sent above, then made a new patch, then
diff'd the patches. The only difference was in the first
two lines with the pathname and date.
Thus I can state that the carriage return on the last line
is Not missing in either patch; both provided in the link
above.
It is possible that the last line was removed by the email system.
It is possible that old diff and patch utilities are not compatible with
new versions.
David