From fcaa63b4a1c5e09a0de56ad220abe6396bc508b4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Mar 2014 08:28:22 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@8728 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/langpack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mir_core') 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) { -- cgit v1.2.3