From d7f0ba48a0ba4476084d83b9242c2f5661491125 Mon Sep 17 00:00:00 2001 From: guyzmo Date: Sat, 13 May 2017 14:50:25 +0200 Subject: [PATCH] Fix missing NONULL for mutt.set() in Lua (#578) fixes #567 Signed-off-by: Guyzmo --- init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.c b/init.c index 1c1482570..33c5590da 100644 --- a/init.c +++ b/init.c @@ -436,7 +436,7 @@ int mutt_option_set(const struct option_t *val, BUFFER *err) case DT_PATH: { char scratch[LONG_STRING]; - strfcpy(scratch, (const char *) val->data, sizeof(scratch)); + strfcpy(scratch, NONULL((const char *) val->data), sizeof(scratch)); mutt_expand_path(scratch, sizeof(scratch)); /* MuttVars[idx].data is already 'char**' (or some 'void**') or... * so cast to 'void*' is okay */ -- 2.40.0