diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 1bb32c4927860dd655f2f65ad1ebc3bcdb06162e
parent 1d78c950bc1b9cd4822395c0e5ca9775ab27f4f3
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun,  9 Jan 2022 20:02:18 +0100

fix(export): invalid write of size 1

Diffstat:
Msrc/export.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/export.c b/src/export.c @@ -121,7 +121,7 @@ void ics_export(const char* ics_filepath, WINDOW* header, WINDOW* cal, WINDOW* a it.tm_mday++; } // endfor each entry - veventsr = realloc(vevents, strlen(vevents) + strlen("END:VCALENDAR") + 1); + veventsr = realloc(vevents, strlen(vevents) + strlen("END:VCALENDAR\n") + 1); if (veventsr == NULL) { perror("failed to realloc vevents buffer"); free(vevents);