master
Raheman Vaiya 4 years ago
parent abb056ba2c
commit 40efc24002
  1. 2
      src/config.c
  2. 4
      src/keyd.c
  3. 2
      src/macro.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; \

@ -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");
}
}

@ -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; \

Loading…
Cancel
Save