Module: wine Branch: master Commit: 5348bf674204ab18d2c5e4c45f48acb51972c3cb URL: https://source.winehq.org/git/wine.git/?a=commit;h=5348bf674204ab18d2c5e4c45...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Apr 23 11:12:13 2019 +0200
fusion/tests: Avoid using snprintf().
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/fusion/tests/asmenum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/fusion/tests/asmenum.c b/dlls/fusion/tests/asmenum.c index 5091be4..115089e 100644 --- a/dlls/fusion/tests/asmenum.c +++ b/dlls/fusion/tests/asmenum.c @@ -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; }