From 07f64d9e212c9b35fdb70ba4ca49feb03f3c01d9 Mon Sep 17 00:00:00 2001 From: Ben RUBSON Date: Wed, 11 Oct 2017 07:52:15 +0200 Subject: [PATCH] Correct an undefined pointer dereference --- encfs/readpassphrase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encfs/readpassphrase.cpp b/encfs/readpassphrase.cpp index 93750f7..7e1a334 100644 --- a/encfs/readpassphrase.cpp +++ b/encfs/readpassphrase.cpp @@ -143,8 +143,8 @@ restart: *p++ = ch; } } + *p = '\0'; } - *p = '\0'; save_errno = errno; if ((term.c_lflag & ECHO) == 0u) { if(write(output, "\n", 1) != -1) {