summaryrefslogtreecommitdiff
path: root/src/mir_core/langpack.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-24 08:28:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-24 08:28:22 +0000
commitfcaa63b4a1c5e09a0de56ad220abe6396bc508b4 (patch)
tree47c81d17c899a341dc21d93b144f3c6772fa08a4 /src/mir_core/langpack.cpp
parent06888467f39971b9534bc2969afb14f3d38231f1 (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8728 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core/langpack.cpp')
-rw-r--r--src/mir_core/langpack.cpp4
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) {