diary

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

commit 60cf2911abc177e4d28ac22f85398d32c05dd7d1
parent 6047211ea0da88d2254b0dc09e6a4a3409bb3cce
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Tue, 21 Jun 2022 13:20:33 +0200

fix(#10): malloc google_tokenfile

Diffstat:
Msrc/diary.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/diary.c b/src/diary.c @@ -346,6 +346,7 @@ bool read_config(const char* file_path) { strcpy(CONFIG.editor, value_buf); } else if (strcmp("google_tokenfile", key_buf) == 0) { expaned_value = expand_path(value_buf); + CONFIG.google_tokenfile = (char *) malloc(strlen(expaned_value) + 1 * sizeof(char)); strcpy(CONFIG.google_tokenfile, expaned_value); free(expaned_value); } else if (strcmp("google_clientid", key_buf) == 0) {