Add a new warning for numeric keysyms
[platform/upstream/libxkbcommon.git] / fuzz / keymap / target.c
index 3c5e5f7..9984476 100644 (file)
@@ -3,6 +3,7 @@
  *
  * Currently, just parses an input file, and hopefully doesn't crash or hang.
  */
+#include "config.h"
 
 #include <assert.h>
 
@@ -29,7 +30,7 @@ main(int argc, char *argv[])
     while (__AFL_LOOP(1000))
 #endif
     {
-        file = fopen(argv[1], "r");
+        file = fopen(argv[1], "rb");
         assert(file);
         keymap = xkb_keymap_new_from_file(ctx, file,
                                           XKB_KEYMAP_FORMAT_TEXT_V1,