summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/lnumeric.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2003-06-13 00:14:07 +0000
committerjkh <jkh@FreeBSD.org>2003-06-13 00:14:07 +0000
commit56787fa7b199f3e56307c941bd464b9fcfcde7d5 (patch)
tree8a933dd924bf8f358332d7cf52977b4a04422fc4 /lib/libc/locale/lnumeric.c
parent337a3926640fe092173b6a55d92517d635a96d95 (diff)
downloadFreeBSD-src-56787fa7b199f3e56307c941bd464b9fcfcde7d5.zip
FreeBSD-src-56787fa7b199f3e56307c941bd464b9fcfcde7d5.tar.gz
Fixes to locale code to properly use indirect pointers in order to prevent
memory leaks (fixes bugs earlier purported to be fixed). Submitted by: Ed Moy <emoy@apple.com> Obtained from: Apple Computer, Inc. MFC after: 2 weeks
Diffstat (limited to 'lib/libc/locale/lnumeric.c')
-rw-r--r--lib/libc/locale/lnumeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/lnumeric.c b/lib/libc/locale/lnumeric.c
index 77d2bfa..93acccc 100644
--- a/lib/libc/locale/lnumeric.c
+++ b/lib/libc/locale/lnumeric.c
@@ -54,7 +54,7 @@ __numeric_load_locale(const char *name)
int ret;
ret = __part_load_locale(name, &_numeric_using_locale,
- _numeric_locale_buf, "LC_NUMERIC",
+ &_numeric_locale_buf, "LC_NUMERIC",
LCNUMERIC_SIZE, LCNUMERIC_SIZE,
(const char **)&_numeric_locale);
if (ret != _LDP_ERROR)
OpenPOWER on IntegriCloud