removed prints

This commit is contained in:
_ 2018-04-01 19:15:52 -07:00
parent 0ad61e690d
commit 96b2acf95c

5
main.c
View File

@ -31,16 +31,11 @@ void unpackpld(const char *buffer,
unsigned int start = 0; // ending offset for data unsigned int start = 0; // ending offset for data
unsigned int end = 0; // ending offset for data unsigned int end = 0; // ending offset for data
for (i = 0; (i + 1) < (ph -> numOffset) + 1; i++) { 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]; start = ph -> offsets[i];
// the last offset still has some data until the end of file // the last offset still has some data until the end of file
end = (i == (ph -> numOffset) - 1) ? s : ph -> offsets[i + 1]; end = (i == (ph -> numOffset) - 1) ? s : ph -> offsets[i + 1];
// copy sector to write buffer // copy sector to write buffer
wsize = end - start; wsize = end - start;
printf("end is %x - i is %d - wsize is %x\n", end, i, wsize);
wbuffer = (char*)malloc(sizeof(char) * wsize); wbuffer = (char*)malloc(sizeof(char) * wsize);
memcpy(wbuffer, buffer + start, wsize); memcpy(wbuffer, buffer + start, wsize);
// create a file. // create a file.