зеркало из https://github.com/mozilla/gecko-dev.git
Small fix for path separators.
This commit is contained in:
Родитель
8874310149
Коммит
429e50b781
|
@ -1094,7 +1094,11 @@ nsresult nsRepository::SyncComponentsInDir(const char *dir)
|
|||
unsigned int n = strlen(fullname);
|
||||
if (n+1 < sizeof(fullname))
|
||||
{
|
||||
fullname[n] = '/'; // PR_GetDirectorySeparator();
|
||||
#ifdef XP_WIN
|
||||
fullname[n] = PR_GetDirectorySeparator();
|
||||
#else
|
||||
fullname[n] = '/';
|
||||
#endif
|
||||
n++;
|
||||
}
|
||||
char *filepart = fullname + n;
|
||||
|
|
|
@ -1094,7 +1094,11 @@ nsresult nsRepository::SyncComponentsInDir(const char *dir)
|
|||
unsigned int n = strlen(fullname);
|
||||
if (n+1 < sizeof(fullname))
|
||||
{
|
||||
fullname[n] = '/'; // PR_GetDirectorySeparator();
|
||||
#ifdef XP_WIN
|
||||
fullname[n] = PR_GetDirectorySeparator();
|
||||
#else
|
||||
fullname[n] = '/';
|
||||
#endif
|
||||
n++;
|
||||
}
|
||||
char *filepart = fullname + n;
|
||||
|
|
Загрузка…
Ссылка в новой задаче