From 5a13dd2b765f8d11aaaff71faa9d62abf36fe2f0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 19 Aug 2011 09:32:25 -0400 Subject: [PATCH] Quiet an innocuous valgrind warning. --- plugins/sudoers/iolog_path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sudoers/iolog_path.c b/plugins/sudoers/iolog_path.c index 745f8aadb..0f1044f20 100644 --- a/plugins/sudoers/iolog_path.c +++ b/plugins/sudoers/iolog_path.c @@ -250,6 +250,7 @@ expand_iolog_path(const char *prefix, const char *dir, const char *file, } #endif /* We only calls strftime() on the current part of the buffer. */ + tmpbuf[sizeof(tmpbuf) - 1] = '\0'; len = strftime(tmpbuf, sizeof(tmpbuf), dst0, timeptr); #ifdef HAVE_SETLOCALE -- 2.40.0