Does anyone know why I might be receiving this error in my recover program? I've used xxd to confirm that the first four bytes are correct and signal that each is a jpeg. However, I am still receiving this error.
while fread(512 bytes from src into buffer) does not return 0 if(A JPEG is found) char title[8] sprintf(create new file) img = fopen(title, "w") fwrite(512 bytes from buffer into img) if(eof) fclose(src) fclose(img)