bug 2673 ignore commands that have fewer than 2 characters.

This commit is contained in:
Enno Rehling 2020-06-15 20:05:31 +02:00
parent f9c3f74117
commit 276db404ba
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ keyword_t get_keyword(const char *s, const struct locale *lang) {
char buffer[64]; char buffer[64];
char *str = transliterate(buffer, sizeof(buffer) - sizeof(int), s); char *str = transliterate(buffer, sizeof(buffer) - sizeof(int), s);
if (str) { if (str && str[0] && str[1]) {
int i; int i;
void *match; void *match;
void **tokens = get_translations(lang, UT_KEYWORDS); void **tokens = get_translations(lang, UT_KEYWORDS);

View File

@ -67,7 +67,7 @@ param_t findparam(const char *s, const struct locale * lang)
char buffer[64]; char buffer[64];
char * str = s ? transliterate(buffer, sizeof(buffer) - sizeof(int), s) : 0; char * str = s ? transliterate(buffer, sizeof(buffer) - sizeof(int), s) : 0;
if (str && *str) { if (str && str[0] && str[1]) {
int i; int i;
void * match; void * match;
void **tokens = get_translations(lang, UT_PARAMS); void **tokens = get_translations(lang, UT_PARAMS);