diff options
author | Andrés <andmarti@gmail.com> | 2022-10-21 16:04:26 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2022-10-21 16:04:26 -0300 |
commit | 391d2d61c7e32f184effc08eeab7c4125bddf9ac (patch) | |
tree | 4df0c6e7a7681dc36a1c6265673f608312093836 | |
parent | 55e29e7da0ab8313988a755dd9e21d8bdf79c01c (diff) |
fix typo when saving cellcolor
-rw-r--r-- | src/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -526,7 +526,7 @@ void write_fd(FILE * f, struct roman * doc) { decompile(e, 0); uppercase(line); del_char(line, 0); - snprintf(strcolor + strlen(strcolor), strlen(line)-4, " bg=%s", &line[0]); + snprintf(strcolor + strlen(strcolor), strlen(line)+5, " bg=%s", &line[0]); free(e); } else if ((cc = get_custom_color_by_number((*pp)->ucolor->bg - 7)) != NULL) { sprintf(strcolor + strlen(strcolor), " bg=%.*s", BUFFERSIZE-5, cc->name); |