File diff r26335:734cb9682af1 → r26336:7c7912ebd301
src/walltime_func.h
Show inline comments
 
@@ -62,13 +62,13 @@ struct Time {
 
		/* GCC bug #39438; unlike for printf where the appropriate attribute prevent the
 
		 * "format non literal" warning, that does not happen for strftime. Even though
 
		 * format warnings will be created for invalid strftime formats. */
 
#pragma GCC diagnostic push
 
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
 
#endif /* _MSC_VER */
 
		return strftime(buffer, last - buffer, format, &time_struct);
 
		return strftime(buffer, last - buffer + 1, format, &time_struct);
 
#ifndef _MSC_VER
 
#pragma GCC diagnostic pop
 
#endif /* _MSC_VER */
 
	}
 
};