summaryrefslogtreecommitdiff
blob: 0271d624345270ad35bd22e0f8c8ebde137674fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- 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);
 }