X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2f8d658a22c57a9f33539ad1de7c763be18f0f57..db5288e38a3efb1a2e86d41590c071c5bf81e44e:/tools/firmware-utils/src/trx.c diff --git a/tools/firmware-utils/src/trx.c b/tools/firmware-utils/src/trx.c index 1ad3de54f..b9830239a 100644 --- a/tools/firmware-utils/src/trx.c +++ b/tools/firmware-utils/src/trx.c @@ -60,7 +60,7 @@ uint32_t crc32buf(char *buf, size_t len); #define TRX_MAGIC 0x30524448 /* "HDR0" */ #define TRX_VERSION 1 -#define TRX_MAX_LEN 0x5A0000 +#define TRX_MAX_LEN 0x720000 #define TRX_NO_HEADER 1 /* Do not write TRX header */ struct trx_header { @@ -172,6 +172,7 @@ int main(int argc, char **argv) fprintf(stderr, "realloc failed"); return EXIT_FAILURE; } + p = (struct trx_header *) buf; break; case 'a': errno = 0;