separator module #1

Merged
poz merged 5 commits from krizej/modfetch:sepmodule into master 2024-02-09 22:48:17 +01:00
Showing only changes of commit 3062c78d8e - Show all commits

View file

@ -159,6 +159,7 @@ Config parse_config(FILE *config_file) {
in_config = true; in_config = true;
// get rid of the '{' // get rid of the '{'
strncpy(current_path, line, (size_t)read - 2); strncpy(current_path, line, (size_t)read - 2);
current_path[read - 2] = '\0';
current_module.path = process_str(current_path); current_module.path = process_str(current_path);
current_module.config = malloc(INITIAL_CONFIG_SIZE * sizeof(char*)); current_module.config = malloc(INITIAL_CONFIG_SIZE * sizeof(char*));