This commit is contained in:
comex 2011-01-14 18:30:32 -05:00
parent 934164983a
commit d785278c20

View File

@ -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);
}