]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add L for wide
authorMark Andrews <marka@isc.org>
Wed, 4 Oct 2017 09:44:01 +0000 (20:44 +1100)
committerMark Andrews <marka@isc.org>
Wed, 4 Oct 2017 09:44:01 +0000 (20:44 +1100)
bin/dig/dig.c

index 43e015b88cb125a50c52b8516f4e2d092617073e..a7c34a3ec45196905bfba6e59c4151152343d4f3 100644 (file)
@@ -260,7 +260,7 @@ received(int bytes, isc_sockaddr_t *from, dig_query_t *query) {
                 * wide-character string, which strftime() handles incorrectly.
                 */
                if (wcsftime(time_str, sizeof(time_str)/sizeof(time_str[0]),
-                            "%a %b %d %H:%M:%S %Z %Y", &tmnow) > 0U)
+                            L"%a %b %d %H:%M:%S %Z %Y", &tmnow) > 0U)
                        printf(";; WHEN: %ls\n", time_str);
 #else
                if (strftime(time_str, sizeof(time_str),