libxkbcommon/src
Sam James fed96378a1 state: fix -Walloc-size
GCC 14 introduces a new -Walloc-size included in -Wextra which gives:
```
src/state.c:589:9: warning: allocation of insufficient size ‘1’ for type ‘struct xkb_state’ with size ‘128’ [-Walloc-size]
```

The calloc prototype is:
```
void *calloc(size_t nmemb, size_t size);
```

So, just swap the number of members and size arguments to match the prototype, as
we're initialising 1 struct of size `sizeof(struct xkb_state)`. GCC then sees we're not
doing anything wrong.

Signed-off-by: Sam James <sam@gentoo.org>
2023-11-06 12:32:46 +10:00
..
compose Compose: early detection of invalid encoding 2023-11-03 04:16:50 +01:00
x11 Messages: merge macros with and without message code 2023-09-24 09:09:24 +02:00
xkbcomp rules: early detection of invalid encoding 2023-11-03 04:16:50 +01:00
atom.c atom: rewrite as a hash table 2021-04-27 16:41:32 +03:00
atom.h atom: combine atom_intern() and atom_lookup() 2019-11-09 21:28:43 +02:00
context-priv.c Messages: merge macros with and without message code 2023-09-24 09:09:24 +02:00
context.c Messages: merge macros with and without message code 2023-09-24 09:09:24 +02:00
context.h Messages: merge macros with and without message code 2023-09-24 09:09:24 +02:00
darray.h Compose: add iterator API 2023-09-26 09:02:45 +02:00
keymap-priv.c build: include config.h manually 2019-12-27 13:09:11 +02:00
keymap.c scanner: allow for a zero terminated string as keymap 2023-05-05 09:57:23 +10:00
keymap.h Add support for modmap None (#291) 2023-05-01 23:30:41 +03:00
keysym-utf.c Do not interpret nor emit invalid Unicode encoding forms 2023-05-13 22:02:46 +03:00
keysym.c Fix xkb_keysym_from_name for numeric keysyms 2023-07-14 09:22:24 +02:00
keysym.h Add XKB_KEYSYM_MIN and XKB_KEYSYM_MAX 2023-07-14 09:22:24 +02:00
ks_tables.h Keysyms: Fix missing hpYdiaeresis 2023-10-06 09:37:40 +02:00
messages-codes.h Disallow producing NULL character with escape sequences 2023-09-26 17:25:49 +02:00
messages-codes.h.jinja Messages: merge macros with and without message code 2023-09-24 09:09:24 +02:00
registry.c registry: remove a few asprintf/free() calls with snprintf 2023-05-04 18:46:16 +10:00
scanner-utils.h Compose: early detection of invalid encoding 2023-11-03 04:16:50 +01:00
state.c state: fix -Walloc-size 2023-11-06 12:32:46 +10:00
text.c Add support for modmap None (#291) 2023-05-01 23:30:41 +03:00
text.h text: take xkb_mod_set instead of the entire keymap 2014-04-19 16:23:04 +03:00
utf8.c Do not interpret nor emit invalid Unicode encoding forms 2023-05-13 22:02:46 +03:00
utf8.h Add utf8.{c,h} for common UTF-8 util functions 2014-03-22 02:10:28 +02:00
util-list.c Add libxkbregistry to query available RMLVO 2020-07-06 15:15:20 +10:00
util-list.h Add libxkbregistry to query available RMLVO 2020-07-06 15:15:20 +10:00
utils.c build: include config.h manually 2019-12-27 13:09:11 +02:00
utils.h Compose: early detection of invalid encoding 2023-11-03 04:16:50 +01:00