1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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:
Jon Trulson 2012-08-03 17:38:06 -06:00
parent 94c826e1f4
commit 4553d912b0

View file

@ -1092,6 +1092,10 @@ ScanNLSDir(char *dirname)
{
locale = dp->d_name;
if ( (strcmp(dp->d_name, ".") == 0) ||
(strcmp(dp->d_name, "..") == 0) )
continue;
if (locale[0] != '.' &&
LANGLISTSIZE > (int) (strlen(languageList)+strlen(locale)+2));
{