Commit 3fb5f7ce authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

text/strings: vlc_xml_decode: use ARRAY_SIZE

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent b71eab28
......@@ -47,6 +47,7 @@
#include <vlc_strings.h>
#include <vlc_charset.h>
#include <vlc_arrays.h>
#include <libvlc.h>
#include <errno.h>
......@@ -254,7 +255,7 @@ void vlc_xml_decode( char *psz_value )
const struct xml_entity_s *ent;
ent = bsearch (psz_value + 1, xml_entities,
sizeof (xml_entities) / sizeof (*ent),
ARRAY_SIZE (xml_entities),
sizeof (*ent), cmp_entity);
if (ent != NULL)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment