summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime
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/stdtime
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/stdtime')
-rw-r--r--lib/libc/stdtime/timelocal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdtime/timelocal.c b/lib/libc/stdtime/timelocal.c
index 88117bd..6917e6b 100644
--- a/lib/libc/stdtime/timelocal.c
+++ b/lib/libc/stdtime/timelocal.c
@@ -111,7 +111,7 @@ int
__time_load_locale(const char *name)
{
return (__part_load_locale(name, &_time_using_locale,
- time_locale_buf, "LC_TIME",
+ &time_locale_buf, "LC_TIME",
LCTIME_SIZE, LCTIME_SIZE,
(const char **)&_time_locale));
}
OpenPOWER on IntegriCloud