dtlogin: Fix up Options->Language menu
In dtlogin, you can select the language to switch to by selecting it via Options->Language. Unfortunately this was also including '.' and '..', since this list is built dynamically by scanning a directory. Now we screen out '.' and '..'.
This commit is contained in:
@@ -1092,6 +1092,10 @@ ScanNLSDir(char *dirname)
|
|||||||
{
|
{
|
||||||
locale = dp->d_name;
|
locale = dp->d_name;
|
||||||
|
|
||||||
|
if ( (strcmp(dp->d_name, ".") == 0) ||
|
||||||
|
(strcmp(dp->d_name, "..") == 0) )
|
||||||
|
continue;
|
||||||
|
|
||||||
if (locale[0] != '.' &&
|
if (locale[0] != '.' &&
|
||||||
LANGLISTSIZE > (int) (strlen(languageList)+strlen(locale)+2));
|
LANGLISTSIZE > (int) (strlen(languageList)+strlen(locale)+2));
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user