diary

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

commit b18d6ccf708fc010f85b016315de614b354bc9df
parent ba59f1037e87e8d7591e68b280c9a8df00e37a69
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Wed, 29 Dec 2021 22:04:31 +0100

rename variable

Diffstat:
Msrc/export.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/export.c b/src/export.c @@ -71,8 +71,8 @@ void ics_export(const char* ics_filepath, WINDOW* header, WINDOW* cal, WINDOW* a rewind(fp); size_t descr_labell = strlen("DESCRIPTION:"); - size_t descrl = descr_bytes + descr_labell + 1; - descr = malloc(descrl); + size_t descr_size = descr_bytes + descr_labell + 1; + descr = malloc(descr_size); if (descr == NULL) { perror("malloc failed"); return; @@ -88,7 +88,7 @@ void ics_export(const char* ics_filepath, WINDOW* header, WINDOW* cal, WINDOW* a return; } - descr[descrl - 1] = '\0'; + descr[descr_size - 1] = '\0'; char* folded_descr = fold(descr);