summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-10-21 08:34:08 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-10-22 21:02:04 +0200
commitbb31b0f261fbcd6398f644c0070d89f67b92a9ef (patch)
tree5eca8ac159ffb3dfb682518bbde982673d5d2ed2 /src
parentstartup_checks: Resolve -Wformat (diff)
downloadyuzu-bb31b0f261fbcd6398f644c0070d89f67b92a9ef.tar
yuzu-bb31b0f261fbcd6398f644c0070d89f67b92a9ef.tar.gz
yuzu-bb31b0f261fbcd6398f644c0070d89f67b92a9ef.tar.bz2
yuzu-bb31b0f261fbcd6398f644c0070d89f67b92a9ef.tar.lz
yuzu-bb31b0f261fbcd6398f644c0070d89f67b92a9ef.tar.xz
yuzu-bb31b0f261fbcd6398f644c0070d89f67b92a9ef.tar.zst
yuzu-bb31b0f261fbcd6398f644c0070d89f67b92a9ef.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/startup_checks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu/startup_checks.cpp b/src/yuzu/startup_checks.cpp
index 9bb2a6ef4..6a91212e2 100644
--- a/src/yuzu/startup_checks.cpp
+++ b/src/yuzu/startup_checks.cpp
@@ -135,7 +135,8 @@ bool SpawnChild(const char* arg0, PROCESS_INFORMATION* pi, int flags) {
startup_info.cb = sizeof(startup_info);
char p_name[255];
- std::strncpy(p_name, arg0, 255);
+ std::strncpy(p_name, arg0, 254);
+ p_name[254] = '\0';
const bool process_created = CreateProcessA(nullptr, // lpApplicationName
p_name, // lpCommandLine