diff --git a/src/windows-cmdline-wrapper.c b/src/windows-cmdline-wrapper.c index 704e2d7..7299ab2 100644 --- a/src/windows-cmdline-wrapper.c +++ b/src/windows-cmdline-wrapper.c @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) // We expect our helper to end with .com assert(strncmp(name + len - 3, "com", 4) == 0); // replace .com with .exe - strncpy(name + len - 3, "exe", 3); + memcpy(name + len - 3, "exe", 3); } si.cb = sizeof(si);