fusion/tests: Avoid using snprintf().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-04-23 11:12:13 +02:00
parent 740c1c37cb
commit 5348bf6742
1 changed files with 2 additions and 2 deletions

View File

@ -242,10 +242,10 @@ static void enum_gac_assembly_dirs(struct list *assemblies, const char *parent,
*end = 0;
/* Directories with no dll or exe will not be enumerated */
snprintf(end, path + MAX_PATH - end, "%s\\%s.dll", ffd.cFileName, parent);
sprintf(end, "%s\\%s.dll", ffd.cFileName, parent);
if (GetFileAttributesA(path) == INVALID_FILE_ATTRIBUTES)
{
snprintf(end, path + MAX_PATH - end, "%s\\%s.exe", ffd.cFileName, parent);
sprintf(end, "%s\\%s.exe", ffd.cFileName, parent);
if (GetFileAttributesA(path) == INVALID_FILE_ATTRIBUTES) continue;
}