Skip to content

Commit

Permalink
km fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
orangecms committed Sep 22, 2024
1 parent 044a9ee commit 546b561
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmds/km/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ func main() {
log.Fatalf("cannot read input file: %v", err)
}

KEYMMagic := []byte("__KEYM__")
offset := bytes.Index(data, KEYMMagic)
if offset == -1 {
log.Fatalf("no %v magic (%x) found", string(KEYMMagic), KEYMMagic)
keymMagic := []byte("__KEYM__")
if !bytes.Contains(data, keymMagic) {
log.Fatalf("no %v magic (%x) found", string(keymMagic), keymMagic)
}

m := cbntkey.Manifest{}
Expand Down

0 comments on commit 546b561

Please sign in to comment.