2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

Quiet an innocuous valgrind warning.

This commit is contained in:
Todd C. Miller 2011-08-19 09:32:25 -04:00
parent bfc84b01f3
commit 5a13dd2b76

View 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