summaryrefslogtreecommitdiffstats
path: root/common/imd.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/imd.c')
-rw-r--r--common/imd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/imd.c b/common/imd.c
index 159b73a828..a8a10fc9bb 100644
--- a/common/imd.c
+++ b/common/imd.c
@@ -212,7 +212,7 @@ const char *imd_string_data(struct imd_header *imd, int index)
int len = imd_read_length(imd);
char *p = (char *)(imd + 1);
- if (!imd_is_string(imd->type))
+ if (!imd_is_string(imd_read_type(imd)))
return NULL;
for (i = 0; total < len; total += l, p += l) {
@@ -239,7 +239,7 @@ char *imd_concat_strings(struct imd_header *imd)
char *str;
char *data = (char *)(imd + 1);
- if (!imd_is_string(imd->type))
+ if (!imd_is_string(imd_read_type(imd)))
return NULL;
str = malloc(len);