When I run my program, only images 000.jpg through 012.jpg are recovered, and I can't figure out why. I've gone through the code over and over, checked everything, and I've added comments for everything to make sure I understand what everything does, but I can't fix this issue. So, what's going on?
Here is my code: https://github.com/jhschwartz/pset4/blob/master/recover.c