From 5187b4adab1ef6cbda32b892d517d57e05451276 Mon Sep 17 00:00:00 2001 From: gennyble Date: Sat, 22 Jul 2023 12:58:31 -0500 Subject: use correct bytes for loop count --- gifprobe/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gifprobe/src/main.rs b/gifprobe/src/main.rs index 03d626f..64cee94 100644 --- a/gifprobe/src/main.rs +++ b/gifprobe/src/main.rs @@ -153,7 +153,7 @@ fn main() { if app_ident == "NETSCAPE" { let data = app.data(); - let looping = u16::from_le_bytes([data[0], data[1]]); + let looping = u16::from_le_bytes([data[1], data[2]]); if looping == 0 { println!("\tLoop {}", "forever".yellow()) -- cgit 1.4.1-3-g733a5