From d785278c207bb18919cabbdb22ad6aaea3658e3c Mon Sep 17 00:00:00 2001 From: comex Date: Fri, 14 Jan 2011 18:30:32 -0500 Subject: [PATCH] crazy --- apply_patchfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apply_patchfile.c b/apply_patchfile.c index d3af383..5b299db 100644 --- a/apply_patchfile.c +++ b/apply_patchfile.c @@ -34,7 +34,7 @@ int main(int argc, char **argv) { void *stuff = malloc(size); assert(read(patchfd, stuff, size) == (ssize_t) size); - if(addr != 0) { + if(addr != 0 && name[0] != '+') { printf("%s\n", name); memcpy((char *) kernel.start + range_to_off_range((range_t) {&binary, addr, size}).start, stuff, size); }