Subversion Repositories SvarDOS

Rev

Rev 814 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 814 Rev 816
Line 65... Line 65...
65
 
65
 
66
  /* copy nlspath to buff and remember len */
66
  /* copy nlspath to buff and remember len */
67
  for (i = 0; (nlspath[i] != 0) && (nlspath[i] != ';'); i++) buff[i] = nlspath[i];
67
  for (i = 0; (nlspath[i] != 0) && (nlspath[i] != ';'); i++) buff[i] = nlspath[i];
68
  nlspath += i;
68
  nlspath += i;
69
 
69
 
70
  /* ignore the trailing backslash (I add one myself) */
70
  /* add a trailing backslash if there is none (non-empty paths empty) */
71
  if ((i > 0) && (buff[i - 1] == '\\')) i--;
71
  if ((i > 0) && (buff[i - 1] != '\\')) buff[i++] = '\\';
72
 
72
 
73
  buff[i++] = '\\';
-
 
74
  strcpy(buff + i, progname);
73
  strcpy(buff + i, progname);
75
  strcat(buff + i, ".lng");
74
  strcat(buff + i, ".lng");
76
 
75
 
77
  fd = fopen(buff, "rb");
76
  fd = fopen(buff, "rb");
78
  if (fd == NULL) { /* failed to open file - either abort or try next path */
77
  if (fd == NULL) { /* failed to open file - either abort or try next path */