summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2022-10-21 16:04:26 -0300
committerAndrés <andmarti@gmail.com>2022-10-21 16:04:26 -0300
commit391d2d61c7e32f184effc08eeab7c4125bddf9ac (patch)
tree4df0c6e7a7681dc36a1c6265673f608312093836
parent55e29e7da0ab8313988a755dd9e21d8bdf79c01c (diff)
fix typo when saving cellcolor
-rw-r--r--src/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.c b/src/file.c
index 8df9970..ae07ada 100644
--- a/src/file.c
+++ b/src/file.c
@@ -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);