Ignore:
Timestamp:
2010-06-12T20:10:01+02:00 (6 years ago)
Author:
florian
Message:

[tools] fix mktitanimg segfault on 64-bits hosts (#7443)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/firmware-utils/src/mktitanimg.c

    r21689 r21767  
    22#include <stdlib.h> 
    33#include <string.h> 
     4#include <libgen.h> 
    45#include "mktitanimg.h" 
    56 
     
    5657        printf("Offset Sections:   0x%x\n",             hdr->sect_info.sections_offset); 
    5758 
    58         chksum=(struct nsp_img_hdr_chksum *)((unsigned int)hdr+hdr->head.chksum_offset); 
     59        chksum=(struct nsp_img_hdr_chksum *)(hdr+hdr->head.chksum_offset); 
    5960        printf("Header Checksum:   0x%x\n",             chksum->hdr_chksum); 
    6061 
Note: See TracChangeset for help on using the changeset viewer.