diff options
-rw-r--r-- | utils/imxtools/sbtools/sb1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/imxtools/sbtools/sb1.c b/utils/imxtools/sbtools/sb1.c index ed5893f454..06e29c4ecb 100644 --- a/utils/imxtools/sbtools/sb1.c +++ b/utils/imxtools/sbtools/sb1.c | |||
@@ -159,7 +159,7 @@ enum sb1_error_t sb1_write_file(struct sb1_file_t *sb, const char *filename) | |||
159 | memmove(buf + i * SECTOR_SIZE, buf + i * (SECTOR_SIZE - 4), SECTOR_SIZE - 4); | 159 | memmove(buf + i * SECTOR_SIZE, buf + i * (SECTOR_SIZE - 4), SECTOR_SIZE - 4); |
160 | 160 | ||
161 | union xorcrypt_key_t key[2]; | 161 | union xorcrypt_key_t key[2]; |
162 | memcpy(key, sb->key.u.xor_key, sizeof(sb->key)); | 162 | memcpy(key, sb->key.u.xor_key, sizeof(sb->key.u.xor_key)); |
163 | void *ptr = header + 1; | 163 | void *ptr = header + 1; |
164 | int offset = header->header_size; | 164 | int offset = header->header_size; |
165 | for(unsigned i = 0; i < image_size / SECTOR_SIZE; i++) | 165 | for(unsigned i = 0; i < image_size / SECTOR_SIZE; i++) |