From d828badbe00f4eaa074aed0ab3361c5fd3c0328b Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 9 Feb 2004 17:04:50 +0100 Subject: Fixed reading the EPG preferred language parameter from 'setup.conf' --- config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config.c') diff --git a/config.c b/config.c index 833a2bba..25b64d32 100644 --- a/config.c +++ b/config.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.122 2004/02/08 15:04:41 kls Exp $ + * $Id: config.c 1.123 2004/02/09 16:57:59 kls Exp $ */ #include "config.h" @@ -374,7 +374,9 @@ bool cSetup::ParseLanguages(const char *Value, int *Values) { int n = 0; while (Value && *Value && n < I18nNumLanguages) { - int i = I18nLanguageIndex(Value); + char buffer[4]; + strn0cpy(buffer, Value, sizeof(buffer)); + int i = I18nLanguageIndex(buffer); if (i >= 0) Values[n++] = i; if ((Value = strchr(Value, ' ')) != NULL) -- cgit v1.2.3