From 40efc24002517706d3e579342edda0af1e5c0ca1 Mon Sep 17 00:00:00 2001 From: Raheman Vaiya Date: Fri, 2 Sep 2022 03:01:18 -0400 Subject: [PATCH] Fix typos --- src/config.c | 2 +- src/keyd.c | 4 ++-- src/macro.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.c b/src/config.c index 9640116..701c7da 100644 --- a/src/config.c +++ b/src/config.c @@ -418,7 +418,7 @@ int parse_macro_expression(const char *s, struct macro *macro) #define ADD_ENTRY(t, d) do { \ if (macro->sz >= ARRAY_SIZE(macro->entries)) { \ - err("maxium macro size (%d) exceeded", ARRAY_SIZE(macro->entries)); \ + err("maximum macro size (%d) exceeded", ARRAY_SIZE(macro->entries)); \ return 1; \ } \ macro->entries[macro->sz].type = t; \ diff --git a/src/keyd.c b/src/keyd.c index 3fc5e52..49de8bc 100644 --- a/src/keyd.c +++ b/src/keyd.c @@ -107,7 +107,7 @@ char *read_input(int argc, char *argv[], size_t *psz) sz += snprintf(buf+sz, sizeof(buf)-sz, "%s%s", argv[i], i == argc-1 ? "" : " "); if (sz >= sizeof(buf)) - die("maxiumum input length exceeded"); + die("maximum input length exceeded"); } } else { while (1) { @@ -118,7 +118,7 @@ char *read_input(int argc, char *argv[], size_t *psz) sz += n; if (sizeof(buf) == sz) - die("maxiumum input length exceeded"); + die("maximum input length exceeded"); } } diff --git a/src/macro.c b/src/macro.c index 96d5d21..0cb5caa 100644 --- a/src/macro.c +++ b/src/macro.c @@ -11,7 +11,7 @@ int macro_parse(char *s, struct macro *macro) #define ADD_ENTRY(t, d) do { \ if (macro->sz >= ARRAY_SIZE(macro->entries)) { \ - err("maxium macro size (%d) exceeded", ARRAY_SIZE(macro->entries)); \ + err("maximum macro size (%d) exceeded", ARRAY_SIZE(macro->entries)); \ return -1; \ } \ macro->entries[macro->sz].type = t; \