Add tools cleanup with parrent clean

This commit is contained in:
CTCaer
2020-12-26 16:17:03 +02:00
parent 2fba9848ae
commit e620783a89
4 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ all: lz77
@echo > /dev/null
clean:
rm -f lz77
@rm -f lz77
lz77: lz.c lz77.c
@$(NATIVE_CC) -o $@ lz.c lz77.c

View File

@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
if (nbytes > out_size)
goto error;
if((out_file = fopen(filename,"w")) == NULL)
if((out_file = fopen(filename,"wb")) == NULL)
goto error;
if (fwrite(out_buf, 1, nbytes, out_file) != nbytes)