mirror of
https://github.com/bettse/seader.git
synced 2026-08-28 10:34:05 +00:00
re-use len values when reading sio/diversifier
This commit is contained in:
+2
-2
@@ -71,10 +71,10 @@ static bool seader_credential_load(SeaderCredential* cred, FuriString* path, boo
|
||||
cred->credential = swapped;
|
||||
|
||||
// Optional SIO/Diversifier
|
||||
flipper_format_read_hex(file, "SIO", cred->sio, sizeof(cred->sio));
|
||||
cred->sio_len = sizeof(cred->sio); // No way to know real length;
|
||||
flipper_format_read_hex(file, "Diversifier", cred->diversifier, sizeof(cred->diversifier));
|
||||
cred->diversifier_len = sizeof(cred->diversifier); // No way to know real length;
|
||||
flipper_format_read_hex(file, "SIO", cred->sio, cred->sio_len);
|
||||
flipper_format_read_hex(file, "Diversifier", cred->diversifier, cred->diversifier_len);
|
||||
|
||||
parsed = true;
|
||||
} while(false);
|
||||
|
||||
Reference in New Issue
Block a user