summaryrefslogtreecommitdiff
path: root/desktop/unx/source
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2014-05-09 10:38:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-20 09:47:54 +0200
commitcd11bc699ac50af4f560ed5f2e5e7903de0898b8 (patch)
tree2b5683460af2b171212bb766deb4cb7ee5858d4e /desktop/unx/source
parent498c314861f0913a5b31ee29efc38aad12c3a781 (diff)
C string usage improvment
Change-Id: I5c59f0d2d1b911ffa1ee251e0f1355d137616493 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop/unx/source')
-rw-r--r--desktop/unx/source/splashx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c
index 24b21526cf6f..288656c9b837 100644
--- a/desktop/unx/source/splashx.c
+++ b/desktop/unx/source/splashx.c
@@ -582,7 +582,7 @@ static void splash_load_image( struct splash* splash, rtl_uString* pUAppPath )
pLang = ustr_to_str (pLoc->Language);
pCountry = ustr_to_str (pLoc->Country);
- nLocSize = strlen (pLang->buffer) + strlen (pCountry->buffer) + 8;
+ nLocSize = strlen (pLang->buffer) + strlen (pCountry->buffer) + 3;
pLocale = malloc (nLocSize);
pLocale[0] = '-';
strcpy (pLocale + 1, pLang->buffer);