X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=blobdiff_plain;ds=sidebyside;f=src%2Fkeybindings.c;h=3ce0e440b2d319af9ff0b81d1040bc468518c10f;hb=2409e8ab623f8ef1452508b0fb4a4293692ed6a7;hp=c318ec18f49c1501c0e72640d7e01db01303350a;hpb=f44e1046dd5fafc71ac481490633ae544c5e5b0c;p=plomrogue diff --git a/src/keybindings.c b/src/keybindings.c index c318ec1..3ce0e44 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -18,7 +18,8 @@ extern void init_keybindings(struct World * world) { FILE * file = fopen("config/keybindings", "r"); uint16_t lines, linemax; - textfile_sizes(file, &linemax, &lines); + char * err = "textfile_sizes() in init_keybindings() returns error."; + exit_err(textfile_sizes(file, &linemax, &lines), world, err); struct KeyBinding * keybindings = malloc(lines * sizeof(struct KeyBinding)); char * command = malloc(linemax); uint16_t commcount = 0;