From 88015a178abab057e49910eae6a24ac6e6315a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Fri, 1 May 2009 19:08:14 +0000 Subject: [PATCH] os_win32.cpp: compile fix for r29476 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29485 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/os_win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/support/os_win32.cpp b/src/support/os_win32.cpp index ad5fb42592..62ef4e9970 100644 --- a/src/support/os_win32.cpp +++ b/src/support/os_win32.cpp @@ -479,7 +479,7 @@ string real_path(string const & path) UINT namelen = _tcslen(tmpbuf); if (_tcsnicmp(realpath, tmpbuf, namelen) == 0) { // UNC path - snprintf(tmpbuf, MAX_PATH, "\\\\%s", realpath + namelen); + _snprintf(tmpbuf, MAX_PATH, "\\\\%s", realpath + namelen); strncpy(realpath, tmpbuf, MAX_PATH); realpath[MAX_PATH] = '\0'; } else if (GetLogicalDriveStrings(MAX_PATH - 1, tmpbuf)) { @@ -499,7 +499,7 @@ string real_path(string const & path) if (found) { // Repl. device spec with drive TCHAR tempfile[MAX_PATH]; - snprintf(tempfile, + _snprintf(tempfile, MAX_PATH, "%s%s", drive,