mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
msvc only knows _snprintf ...
svn path=/trunk/; revision=25579
This commit is contained in:
parent
8d3d576d40
commit
b4b32d74ee
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
#include <windows.h>
|
||||
#include <conio.h>
|
||||
#include <io.h>
|
||||
#include <stdio.h>
|
||||
|
@ -502,7 +503,7 @@ applyPatch_file_open_error:
|
|||
if (c == 'y')
|
||||
{
|
||||
char buffer[MAX_PATH];
|
||||
snprintf(buffer, MAX_PATH, "%s.bak", fileName);
|
||||
_snprintf(buffer, MAX_PATH, "%s.bak", fileName);
|
||||
buffer[MAX_PATH-1] = '\0';
|
||||
makeBackup = 1;
|
||||
if (access(buffer, 0) >= 0) /* file exists */
|
||||
|
|
Loading…
Reference in a new issue