Use more readable char[idx] access instead of *char+idx access.
Version 2.02.73 -
================================
+ Fix 'void*' arithmetic warnings in dbg_malloc.c.
Fix 'void*' arithmetic warning in some functions from libdm-iface.c.
Fix const warning in dev_manager_info() and _dev_manager_lv_rmnodes().
Fix const warning in archive_file structure from archive.c.
for (c = 0; c < sizeof(str) - 1; c++) {
if (c >= mb->length)
str[c] = ' ';
- else if (*(char *)(mb->magic + c) == '\0')
+ else if (((char *)mb->magic)[c] == '\0')
str[c] = '\0';
- else if (*(char *)(mb->magic + c) < ' ')
+ else if (((char *)mb->magic)[c] < ' ')
str[c] = '?';
else
- str[c] = *(char *)(mb->magic + c);
+ str[c] = ((char *)mb->magic)[c];
}
str[sizeof(str) - 1] = '\0';