diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/langpack.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/langpack.cpp b/src/mir_core/langpack.cpp index cb1d7a01e0..de8b22aa19 100644 --- a/src/mir_core/langpack.cpp +++ b/src/mir_core/langpack.cpp @@ -216,10 +216,10 @@ static void LoadLangPackFile(FILE *fp, char *line, UINT fileCp) TCHAR tszFileName[MAX_PATH];
TCHAR *p = _tcsrchr(langPack.tszFullPath, '\\');
if (p)
- p[1] = 0;
+ *p = 0;
mir_sntprintf(tszFileName, SIZEOF(tszFileName), _T("%s\\%S"), langPack.tszFullPath, ltrim(line + 9));
if (p)
- p[1] = '\\';
+ *p = '\\';
FILE *fp = _tfopen(tszFileName, _T("r"));
if (fp) {
|