bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch bug - trips assertion


From: Clarence Dang
Subject: Patch bug - trips assertion
Date: Mon, 3 Sep 2007 18:31:14 +1000
User-agent: KMail/1.8

Please save the attached files and try the following:

~~~~
$ patch --version
patch 2.5.4

$ patch -p0 < misleading-no-newline-at-file-assert-fail.diff
patching file kpMainWindow_Tools.cpp
patch: util.c:415: savebuf: Assertion `s && size' failed.
Aborted
~~~~

The cause is the last line of the diff, "\ No newline at end of file", as the 
file-to-be-patched does not actually end there.

Clarence

-- 
KolourPaint - http://www.kolourpaint.org

Attachment: kpMainWindow_Tools.cpp
Description: Text Data

Attachment: misleading-no-newline-at-file-assert-fail.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]