Use memset instead of bzero
[profile/ivi/libxkbcommon.git] / src / xkb.c
index 0870b3b..a560230 100644 (file)
--- a/src/xkb.c
+++ b/src/xkb.c
@@ -132,7 +132,7 @@ XkbcComputeEffectiveMap(struct xkb_desc * xkb, struct xkb_key_type * type,
         type->mods.mask = type->mods.real_mods;
 
     if (map_rtrn) {
-        bzero(map_rtrn, type->mods.mask + 1);
+        memset(map_rtrn, 0, type->mods.mask + 1);
         if (entry && entry->active)
             for (i = 0; i < type->map_count; i++)
                 map_rtrn[type->map[i].mods.mask] = type->map[i].level;