int x = 0;
for (i = 4; i <= 31; i++ && x++)
if (code.l & (1 << i))
{
if (x == 0)
{
info.bios_info->characteristics = (char**) malloc (sizeof (char*));
info.bios_info->characteristics[x] = characteristics[i-3];
}else
{
realloc (info.bios_info->characteristics, (sizeof(char*) * x));
info.bios_info->characteristics[x] = characteristics[i - 3];
}
}
Результат:
*** glibc detected *** ./HardInform: realloc(): invalid next size: 0x082dc690 ***
ЧЯДНТ?