diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2010-11-19 17:14:11 +0100 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2010-11-19 17:14:11 +0100 |
commit | dd72a5d618a7de6cc6d6d5f31fe7a683745535f3 (patch) | |
tree | 97f1818f866478e1b662250ed23f66bac887ebd5 /sal | |
parent | 14b3f70af24aa72b9ddb380d4674d8126ebb20df (diff) |
fwk160: #i105047# provide anough place for the locale, since it could contain currency and etc.
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/nlsupport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/nlsupport.c b/sal/osl/unx/nlsupport.c index c9f4fd18df21..af7d420ee524 100644 --- a/sal/osl/unx/nlsupport.c +++ b/sal/osl/unx/nlsupport.c @@ -844,9 +844,9 @@ void _imp_getProcessLocale( rtl_Locale ** ppLocale ) if ( NULL == locale ) { - locale = (char *)malloc( 20 ); + locale = (char *)malloc( 128 ); if ( locale ) - macosx_getLocale( locale, 20 ); + macosx_getLocale( locale, 128 ); else fprintf( stderr, "nlsupport.c: locale allocation returned NULL!\n" ); } |