From 96b2acf95c975623a082695192ac0f6f8d77e7de Mon Sep 17 00:00:00 2001 From: _ <_> Date: Sun, 1 Apr 2018 19:15:52 -0700 Subject: [PATCH] removed prints --- main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/main.c b/main.c index ca46d18..7f2e096 100644 --- a/main.c +++ b/main.c @@ -31,16 +31,11 @@ void unpackpld(const char *buffer, unsigned int start = 0; // ending offset for data unsigned int end = 0; // ending offset for data for (i = 0; (i + 1) < (ph -> numOffset) + 1; i++) { - printf("start: %x - end: %x\n", - ph -> offsets[i], - ph -> offsets[i + 1]); - start = ph -> offsets[i]; // the last offset still has some data until the end of file end = (i == (ph -> numOffset) - 1) ? s : ph -> offsets[i + 1]; // copy sector to write buffer wsize = end - start; - printf("end is %x - i is %d - wsize is %x\n", end, i, wsize); wbuffer = (char*)malloc(sizeof(char) * wsize); memcpy(wbuffer, buffer + start, wsize); // create a file.