From: Nikos Mavrogiannopoulos Date: Thu, 7 Apr 2011 22:02:59 +0000 (+0200) Subject: Do not use %e in strftime. Use %d instead which is identically available in windows... X-Git-Tag: gnutls_2_99_0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5028e7963fb39d4ec785804f490d740e03193c1;p=thirdparty%2Fgnutls.git Do not use %e in strftime. Use %d instead which is identically available in windows as well. Based on patch by LRN. --- diff --git a/lib/openpgp/output.c b/lib/openpgp/output.c index b832253fb7..ab146e5d7d 100644 --- a/lib/openpgp/output.c +++ b/lib/openpgp/output.c @@ -187,7 +187,7 @@ print_key_times (gnutls_buffer_st * str, gnutls_openpgp_crt_t cert, int idx) if (gmtime_r (&tim, &t) == NULL) addf (str, "error: gmtime_r (%ld)\n", (unsigned long) tim); - else if (strftime (s, max, "%a %b %e %H:%M:%S UTC %Y", &t) == 0) + else if (strftime (s, max, "%a %b %d %H:%M:%S UTC %Y", &t) == 0) addf (str, "error: strftime (%ld)\n", (unsigned long) tim); else addf (str, _("\t\tCreation: %s\n"), s); @@ -210,7 +210,7 @@ print_key_times (gnutls_buffer_st * str, gnutls_openpgp_crt_t cert, int idx) { if (gmtime_r (&tim, &t) == NULL) addf (str, "error: gmtime_r (%ld)\n", (unsigned long) tim); - else if (strftime (s, max, "%a %b %e %H:%M:%S UTC %Y", &t) == 0) + else if (strftime (s, max, "%a %b %d %H:%M:%S UTC %Y", &t) == 0) addf (str, "error: strftime (%ld)\n", (unsigned long) tim); else addf (str, _("\t\tExpiration: %s\n"), s);