<Tool\r
Name="VCCLCompilerTool"\r
Optimization="0"\r
+ AdditionalIncludeDirectories="..\..\..\include"\r
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;"\r
MinimalRebuild="true"\r
BasicRuntimeChecks="3"\r
FavorSizeOrSpeed="1"\r
OmitFramePointers="true"\r
WholeProgramOptimization="true"\r
+ AdditionalIncludeDirectories="..\..\..\include"\r
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;"\r
RuntimeLibrary="0"\r
BufferSecurityCheck="false"\r
FavorSizeOrSpeed="1"\r
OmitFramePointers="true"\r
WholeProgramOptimization="true"\r
+ AdditionalIncludeDirectories="..\..\..\include"\r
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"\r
RuntimeLibrary="0"\r
BufferSecurityCheck="false"\r
#include<process.h>
#include<winbase.h>
+#include "share/compat.h"
#include "share/safe_str.h"
static int execit(char *prog, char *args);
flac_snprintf(options, sizeof (options), "-%d", flac_level);
for(i = opt_arg; i < argc; i++)
if(argv[i][0] == '-') {
- safe_strncat(options, " ");
- safe_strncat(options, argv[i]);
+ safe_strncat(options, " ", sizeof(options));
+ safe_strncat(options, argv[i], sizeof(options));
}
flac_snprintf(cmdline, sizeof (cmdline), "\"%s\" %s -o \"%s\" \"%s\"", prog, options, argv[to_arg], argv[from_arg]);
/* for the full 'from' and 'to' paths for the renamer process */
p = strrchr(argv[from_arg],'\\');
- safe_strncat(from, p? p+1 : argv[from_arg]);
- safe_strncpy(to, from, sizeof(to));
+ safe_strncat(from, p? p+1 : argv[from_arg], sizeof(from));
+ safe_strncpy(to, from, sizeof(to), sizeof(to));
cptr = strrchr(from,'.');
if(cptr == NULL)