diff -Nuar sudo-1.7.0/logging.c sudo-1.7.0-ctime/logging.c --- sudo-1.7.0/logging.c 2008-11-09 16:13:12.000000000 +0200 +++ sudo-1.7.0-ctime/logging.c 2009-12-02 14:26:15.261685322 +0200 @@ -626,22 +626,6 @@ { char *s; time_t now = time((time_t) 0); -#ifdef HAVE_STRFTIME - static char buf[128]; - struct tm *timeptr; - - timeptr = localtime(&now); - if (def_log_year) - s = "%h %e %T %Y"; - else - s = "%h %e %T"; - - /* strftime() does not guarantee to NUL-terminate so we must check. */ - buf[sizeof(buf) - 1] = '\0'; - if (strftime(buf, sizeof(buf), s, timeptr) && buf[sizeof(buf) - 1] == '\0') - return(buf); - -#endif /* HAVE_STRFTIME */ s = ctime(&now) + 4; /* skip day of the week */ if (def_log_year)