You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/dissembler/files/dissembler-0.9-build.patch

22 lines
392 B

--- a/dissembler.c
+++ b/dissembler.c
@@ -16,6 +16,9 @@
/* FOR EDUCATIONAL PURPOSES ONLY */
+#define _GNU_SOURCE
+#include <string.h>
+#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
#include <ctype.h>
@@ -217,7 +217,7 @@ freedom:
fprintf(fh, "P");
}
fprintf(fh,"\n");
- if(fh != stdout) close(fh);
+ if(fh != stdout) fclose(fh);
free(mem-21);
}