13 Nov
2022
13 Nov
'22
12:49 a.m.
Zebediah Figura (@zfigura) commented about dlls/kernel32/tests/file.c:
+ { + return; + } + + strcat (tmp_path, "filedir\\"); + CreateDirectoryA(tmp_path, NULL); + + strcpy(path_src, tmp_path); + strcpy(path_dest, tmp_path); + strcat (path_src, "testfile.ext.ext2"); + strcat (path_dest, "testfile2.ext.ext2"); + + handle = CreateFileA(path_src, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, 0); + for (i = 0; i < 7000; i++) + { + snprintf(buffer, 70000, "%s%s", buffer, ten); Why not just memcpy()?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/145#note_15577