diff --git a/epan/value_string.h b/epan/value_string.h index 3735c0200f..d5326a2776 100644 --- a/epan/value_string.h +++ b/epan/value_string.h @@ -171,7 +171,7 @@ typedef struct _value_string_ext { WS_DLL_PUBLIC const value_string* _try_val_to_str_ext_init(const guint32 val, const value_string_ext *vse); -#define VALUE_STRING_EXT_INIT(x) { _try_val_to_str_ext_init, 0, array_length(x)-1, x, #x } +#define VALUE_STRING_EXT_INIT(x) { _try_val_to_str_ext_init, 0, G_N_ELEMENTS(x)-1, x, #x } WS_DLL_PUBLIC const value_string_ext *