Allowed the use of either decimal or hexadecimal values for <dataarea> size, <rom> size, and <rom> offset in software lists. [Curt Coder]

This commit is contained in:
Miodrag Milanovic 2010-12-04 13:29:12 +00:00
parent 135a1a9e08
commit bda71c1cd5

View File

@ -513,7 +513,7 @@ static void start_handler(void *data, const char *tagname, const char **attribut
{
if ( swlist->softinfo )
{
UINT32 length = strtol( str_size, NULL, 10 );
UINT32 length = strtol( str_size, NULL, 0 );
char *s = (char *)pool_malloc_lib(swlist->pool, ( strlen( str_name ) + 1 ) * sizeof(char) );
if ( !s )
@ -607,8 +607,8 @@ static void start_handler(void *data, const char *tagname, const char **attribut
{
if ( str_size && str_offset )
{
UINT32 length = strtol( str_size, NULL, 10 );
UINT32 offset = strtol( str_offset, NULL, 16 );
UINT32 length = strtol( str_size, NULL, 0 );
UINT32 offset = strtol( str_offset, NULL, 0 );
if ( str_loadflag && !strcmp(str_loadflag, "reload") )
{