summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5831b56)
raw | patch | inline | side by side (parent: 5831b56)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 23 May 2005 19:31:59 +0000 (12:31 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 23 May 2005 19:31:59 +0000 (12:31 -0700) |
Don't just stop at them and look for the next header. Die,
die, die!
die, die!
apply.c | patch | blob | history |
index 85d7965daa09d01f05a65f5bdde8d889fd21744b..536b06829292485e36f1a8a8d83bed094702e49e 100644 (file)
--- a/apply.c
+++ b/apply.c
while (size > 4 && !memcmp(line, "@@ -", 4)) {
int len = apply_fragment(line, size);
if (len <= 0)
- break;
+ die("corrupt patch");
printf("applying fragment:\n%.*s\n\n", len, line);