]> granicus.if.org Git - sudo/commitdiff
Quiet an innocuous valgrind warning.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 19 Aug 2011 13:32:25 +0000 (09:32 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 19 Aug 2011 13:32:25 +0000 (09:32 -0400)
plugins/sudoers/iolog_path.c

index 745f8aadbc51d755c929117458a57b2055703d0a..0f1044f20337f0c6019c00d422c1604d9cbb57e3 100644 (file)
@@ -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