mi4: Correct a build warning/error that pops up on stricter hosts
Change-Id: Ibf549472aa75a1f5e63eccb5ca7974dec506710f
This commit is contained in:
parent
2434b6ca25
commit
ff665a26d6
1 changed files with 6 additions and 6 deletions
|
@ -158,7 +158,7 @@ int mi4_encode(char *iname, char *oname, int version, int magic,
|
|||
chksum_crc32gentab ();
|
||||
crc = chksum_crc32 (outbuf+0x200,mi4length-0x200);
|
||||
|
||||
strncpy((char *)outbuf, "PPOS", 4); /* Magic */
|
||||
memcpy(outbuf, "PPOS", 4); /* Magic */
|
||||
int2le(version, &outbuf[0x04]); /* .mi4 version */
|
||||
int2le(length+4, &outbuf[0x08]); /* Length of firmware plus magic */
|
||||
int2le(crc, &outbuf[0x0c]); /* CRC32 of mi4 file */
|
||||
|
|
Loading…
Reference in a new issue