Browse Source

Reversed an update, will fix the issue later

master
Unbewohnte 3 years ago
parent
commit
577e279101
  1. 5
      src/main.rs

5
src/main.rs

@ -58,9 +58,8 @@ fn rip_png(path: &Path, destination: &Path) {
let mut start_pos: usize = 0;
let mut last_pos: usize = 0;
let mut end_pos: usize = 0;
for i in 0..file_bytes.len()-iend_identifier.len() {
if i < file_bytes.len() - png_identifier.len() - iend_identifier.len()
&& file_bytes[i..i + png_identifier.len()] == png_identifier {
for i in 0..file_bytes.len()-png_identifier.len() {
if file_bytes[i..i + png_identifier.len()] == png_identifier {
start_pos = i;
}

Loading…
Cancel
Save