added missing check

This commit is contained in:
Alessandro Mauri 2020-08-31 23:50:51 +02:00
parent 0486872d78
commit 633604cefa

3
hkd.c
View File

@ -820,7 +820,8 @@ void parse_config_file (void)
linenum - 1, cp_tmp); linenum - 1, cp_tmp);
exit(-1); exit(-1);
} }
key_buffer_add(&kb, us_tmp); if (key_buffer_add(&kb, us_tmp))
die("Too many keys");
} while ((cp_tmp = strtok(NULL, ","))); } while ((cp_tmp = strtok(NULL, ",")));
cp_tmp = cmd; cp_tmp = cmd;