summaryrefslogtreecommitdiff
path: root/plugins/kaitai
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kaitai')
-rw-r--r--plugins/kaitai/parsers/enum.c2
-rw-r--r--plugins/kaitai/parsers/struct.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/kaitai/parsers/enum.c b/plugins/kaitai/parsers/enum.c
index 267aaba..27e5660 100644
--- a/plugins/kaitai/parsers/enum.c
+++ b/plugins/kaitai/parsers/enum.c
@@ -351,7 +351,7 @@ static int compare_enum_values_by_sized_label(const sized_string_t *l, const enu
{
int result; /* Bilan à retourner */
- result = szstrcmp(l, (*b)->label);
+ result = strncmp(l->data, (*b)->label, l->len); // FIXME
return result;
diff --git a/plugins/kaitai/parsers/struct.c b/plugins/kaitai/parsers/struct.c
index 26089d3..128a788 100644
--- a/plugins/kaitai/parsers/struct.c
+++ b/plugins/kaitai/parsers/struct.c
@@ -578,7 +578,7 @@ GKaitaiEnum *g_kaitai_structure_get_enum(const GKaitaiStruct *kstruct, const siz
{
other = g_kaitai_enum_get_name(kstruct->enums[i]);
- if (szstrcmp(name, other) == 0)
+ if (strncmp(name->data, other, name->len) == 0) // FIXME
{
result = kstruct->enums[i];
g_object_ref(G_OBJECT(result));