summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/sbtools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-12-16 23:35:03 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-12-16 23:35:03 +0100
commitfa1af088e9b7dd458776f682d85869d7be457aa2 (patch)
tree31b543c2b216f6f48e21182599afed1c52c6f879 /utils/imxtools/sbtools
parent47f6d77690abb7bc92cf515684f9b26385d80d25 (diff)
downloadrockbox-fa1af088e9b7dd458776f682d85869d7be457aa2.tar.gz
rockbox-fa1af088e9b7dd458776f682d85869d7be457aa2.tar.bz2
rockbox-fa1af088e9b7dd458776f682d85869d7be457aa2.zip
imxtools/sbtools: fix sb1 product/component version writing
Change-Id: I0153192f41ccc5fb98e7e9f6f110d97bd76dbc47
Diffstat (limited to 'utils/imxtools/sbtools')
-rw-r--r--utils/imxtools/sbtools/sb1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/sb1.c b/utils/imxtools/sbtools/sb1.c
index 6149ef37c2..ff14de0786 100644
--- a/utils/imxtools/sbtools/sb1.c
+++ b/utils/imxtools/sbtools/sb1.c
@@ -98,7 +98,9 @@ enum sb1_error_t sb1_write_file(struct sb1_file_t *sb, const char *filename)
header->header_size = sizeof(struct sb1_header_t);
header->userdata_offset = sb->userdata ? image_size : 0;
memcpy(&header->product_ver, &sb->product_ver, sizeof(sb->product_ver));
+ fix_version(&header->product_ver);
memcpy(&header->component_ver, &sb->component_ver, sizeof(sb->component_ver));
+ fix_version(&header->component_ver);
header->drive_tag = sb->drive_tag;
strncpy((void *)header->signature, "STMP", 4);