Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/locale Missing locale specific change.



details:   https://anonhg.NetBSD.org/src/rev/62924ffc2c62
branches:  trunk
changeset: 789466:62924ffc2c62
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Aug 19 20:41:15 2013 +0000

description:
Missing locale specific change.

diffstat:

 lib/libc/locale/wcsftime.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2f1ef3164597 -r 62924ffc2c62 lib/libc/locale/wcsftime.c
--- a/lib/libc/locale/wcsftime.c        Mon Aug 19 17:50:04 2013 +0000
+++ b/lib/libc/locale/wcsftime.c        Mon Aug 19 20:41:15 2013 +0000
@@ -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 @@
                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)



Home | Main Index | Thread Index | Old Index