Module Name: src
Committed By: joerg
Date: Mon Aug 19 20:41:15 UTC 2013
Modified Files:
src/lib/libc/locale: wcsftime.c
Log Message:
Missing locale specific change.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/locale/wcsftime.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/locale/wcsftime.c
diff -u src/lib/libc/locale/wcsftime.c:1.4 src/lib/libc/locale/wcsftime.c:1.5
--- src/lib/libc/locale/wcsftime.c:1.4 Mon Aug 19 08:03:34 2013
+++ src/lib/libc/locale/wcsftime.c Mon Aug 19 20:41:15 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: wcsftime.c,v 1.4 2013/08/19 08:03:34 joerg Exp $ */
+/* $NetBSD: wcsftime.c,v 1.5 2013/08/19 20:41:15 joerg Exp $ */
/*-
* Copyright (c) 2002 Tim J. Robbins
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: wcsftime.c,v 1.4 2013/08/19 08:03:34 joerg Exp $");
+__RCSID("$NetBSD: wcsftime.c,v 1.5 2013/08/19 20:41:15 joerg Exp $");
#define __SETLOCALE_SOURCE__
#include "namespace.h"
@@ -93,7 +93,7 @@ wcsftime_l(wchar_t *wcs, size_t maxsize,
errno = EINVAL;
goto error;
}
- dst = malloc(maxsize * MB_CUR_MAX);
+ dst = malloc(maxsize * MB_CUR_MAX_L(loc));
if (dst == NULL)
goto error;
if (strftime_l(dst, maxsize, sformat, timeptr, loc) == 0)