diff options
author | pommicket <pommicket@gmail.com> | 2023-03-23 16:18:38 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-03-23 16:18:38 -0400 |
commit | af61b9be6a746421a0417d282134491213f2c03f (patch) | |
tree | b81b5fe297cc2d4f029ec111b9ac6a9228b1c4f8 /config.c | |
parent | 6643ff4c14cc27bf80189aadaf65c36ac2e7307f (diff) |
handle various :increment-number edge cases and binary
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -610,7 +610,7 @@ static int config_part_qsort_cmp(const void *av, const void *bv) { return config_part_cmp(av, bv); } -static const char *config_read_string(Ted *ted, ConfigReader *cfg, char **ptext) { +static char *config_read_string(Ted *ted, ConfigReader *cfg, char **ptext) { char *p; int backslashes = 0; u32 start_line = cfg->line_number; @@ -952,7 +952,7 @@ static void config_parse_line(ConfigReader *cfg, Settings **applicable_settings, // a little bit hacky oh well *newline = '\n'; - const char *string = config_read_string(ted, cfg, &value); + char *string = config_read_string(ted, cfg, &value); newline = strchr(value, '\n'); if (!newline) { |