Lines 121-132
Link Here
|
121 |
info->version = version; |
121 |
info->version = version; |
122 |
info->oem_version = oem_version; |
122 |
info->oem_version = oem_version; |
123 |
info->memory_size = memory_size; |
123 |
info->memory_size = memory_size; |
124 |
strncpy(info->oem_name, get_str(tmp, sizeof tmp, v + 0x06), sizeof(info->oem_name)); |
124 |
info->oem_name = strdup(get_str(tmp, sizeof tmp, v + 0x06)); |
125 |
if ((info->version >> 8) >= 2) |
125 |
if ((info->version >> 8) >= 2) |
126 |
{ |
126 |
{ |
127 |
strncpy(info->vendor_name, get_str(tmp, sizeof tmp, v + 0x16), sizeof(info->vendor_name)); |
127 |
info->vendor_name = strdup(get_str(tmp, sizeof tmp, v + 0x16)); |
128 |
strncpy(info->product_name, get_str(tmp, sizeof tmp, v + 0x1a), sizeof(info->product_name)); |
128 |
info->product_name = strdup(get_str(tmp, sizeof tmp, v + 0x1a)); |
129 |
strncpy(info->product_revision, get_str(tmp, sizeof tmp, v + 0x1e), sizeof(info->product_revision)); |
129 |
info->product_revision = strdup(get_str(tmp, sizeof tmp, v + 0x1e)); |
130 |
} |
130 |
} |
131 |
get_data(tmp, sizeof(tmp), segofs2addr(v + 0x0e)); |
131 |
get_data(tmp, sizeof(tmp), segofs2addr(v + 0x0e)); |
132 |
i = 0; |
132 |
i = 0; |