summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-04-25 21:11:33 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-04-25 21:11:33 +0200
commit4ea0045652321ba625d8354c2a6d6395cdca9353 (patch)
tree72dbc25fdd911a887e195ff41de258cd414d0808
parent31ab932657889f12ac6ea4e239a75d5f9c021faf (diff)
downloadheadstripper-4ea0045652321ba625d8354c2a6d6395cdca9353.tar.gz
Makefile fixes, added debugging messages
-rw-r--r--Makefile2
-rw-r--r--src/main.c10
2 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 960d3af..9b91297 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ build: dir $(OBJ)
@$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS)
debug: CFLAGS += -g -D _DEBUG
-debug: debug_set build;
+debug: build;
#CLEAN BEFORE WINDOWS BUILD!!!
windows: CC = x86_64-w64-mingw32-gcc
diff --git a/src/main.c b/src/main.c
index 79d630f..6437c8e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -74,7 +74,7 @@ int main(int argc, char* argv[])
}
printf("headstripper v%i.%i\n", _VERSION, _SUBVERSION);
- DEBUG_PRINTF("==DEBUG MODE==\n");
+ DEBUG_PRINTF("==DEBUG BUILD==\n");
for(unsigned int cntr = 1; cntr < argc; cntr++)
{
@@ -172,7 +172,10 @@ int strip_jpg(char *_filename)
fputc(c, out);
if(feof(in))
+ {
+ DEBUG_PRINTF("Reached EOF before ENDSEG\n");
break;
+ }
}
fclose(in);
@@ -257,7 +260,10 @@ int strip_png(char *_filename)
}
if(feof(in))
- break;
+ {
+ DEBUG_PRINTF("Reached EOF before IEND\n");
+ break;
+ }
}
fclose(in);