diff options
Diffstat (limited to 'libX11/src/util/makekeys.c')
-rw-r--r-- | libX11/src/util/makekeys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libX11/src/util/makekeys.c b/libX11/src/util/makekeys.c index 36d4d4b63..516f97115 100644 --- a/libX11/src/util/makekeys.c +++ b/libX11/src/util/makekeys.c @@ -34,6 +34,7 @@ from The Open Group. #include <X11/keysymdef.h> #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include "../Xresinternal.h" @@ -158,7 +159,7 @@ main(int argc, char *argv[]) num_found = 0; for (z = ksnum; z < KTNUM; z++) { max_rehash = 0; - for (name = tab, i = z; --i >= 0;) + for (name = &tab[0], i = z; --i >= 0;) *name++ = 0; for (i = 0; i < ksnum; i++) { name = info[i].name; |