Skip to content

Commit 8a92901

Browse files
authored
Make PR more readable
1 parent b602436 commit 8a92901

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/src/cmdhfseos.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,10 @@ static int decrypt_cryptogram(uint8_t *key, uint8_t *input, uint8_t *out, int in
164164

165165
static void increment_command_wrapper(uint8_t *input, int input_len) {
166166
// Increment the end of the header by 1
167-
uint32_t value = MemBeToUint4byte(&input[input_len - sizeof(uint32_t)]);
167+
uint8_t* offset = &input[input_len - sizeof(uint32_t)];
168+
uint32_t value = MemBeToUint4byte(offset);
168169
value++;
169-
Uint4byteToMemBe(&input[input_len - sizeof(uint32_t)], value);
170+
Uint4byteToMemBe(offset, value);
170171
}
171172

172173
static void padToBlockSize(const uint8_t *input, int *inputSize, int blockSize, uint8_t *output) {

0 commit comments

Comments
 (0)