os_win32.cpp: compile fix for r29476

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29485 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-05-01 19:08:14 +00:00
parent e9fc3d45f9
commit 88015a178a

View File

@ -479,7 +479,7 @@ string real_path(string const & path)
UINT namelen = _tcslen(tmpbuf); UINT namelen = _tcslen(tmpbuf);
if (_tcsnicmp(realpath, tmpbuf, namelen) == 0) { if (_tcsnicmp(realpath, tmpbuf, namelen) == 0) {
// UNC path // UNC path
snprintf(tmpbuf, MAX_PATH, "\\\\%s", realpath + namelen); _snprintf(tmpbuf, MAX_PATH, "\\\\%s", realpath + namelen);
strncpy(realpath, tmpbuf, MAX_PATH); strncpy(realpath, tmpbuf, MAX_PATH);
realpath[MAX_PATH] = '\0'; realpath[MAX_PATH] = '\0';
} else if (GetLogicalDriveStrings(MAX_PATH - 1, tmpbuf)) { } else if (GetLogicalDriveStrings(MAX_PATH - 1, tmpbuf)) {
@ -499,7 +499,7 @@ string real_path(string const & path)
if (found) { if (found) {
// Repl. device spec with drive // Repl. device spec with drive
TCHAR tempfile[MAX_PATH]; TCHAR tempfile[MAX_PATH];
snprintf(tempfile, _snprintf(tempfile,
MAX_PATH, MAX_PATH,
"%s%s", "%s%s",
drive, drive,