#include <string.h>
#include <strings.h>
#include "rsb-crc.h"
-#include "extract.h"
+#include "filesystem.h"
#define FINDSTR(addr, str) (!strncmp((char*)addr, str, strlen(str)))
printf("Writing %s\n", newfile);
if ((fd = open(newfile, O_WRONLY|O_CREAT, 0644)) == -1) {
- fprintf(stderr,"%s: ", file);
+ fprintf(stderr,"%s: ", newfile);
perror("open");
exit(1);
}