Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jp7677/dxvk-nvapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Peters <jp7677@gmail.com>2022-03-26 12:29:55 +0300
committerJens Peters <jp7677@gmail.com>2022-03-26 21:23:34 +0300
commitdeeba94c5c2660f0f942cd2210b4999a6e725e96 (patch)
tree68ccd3b276bb5bb03cc392dd68781de681506f89
parent7e53c90d58003a30ad1e4db3092ecf5c660901b8 (diff)
util: Add space for termination
See https://github.com/jp7677/dxvk-nvapi/pull/78#issuecomment-1079648200
-rw-r--r--src/util/util_string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util_string.cpp b/src/util/util_string.cpp
index e80be29..e1f432f 100644
--- a/src/util/util_string.cpp
+++ b/src/util/util_string.cpp
@@ -37,7 +37,7 @@ namespace dxvk::str {
}
void tonvss(NvAPI_ShortString nvss, std::string str) {
- str.resize(NVAPI_SHORT_STRING_MAX);
+ str.resize(NVAPI_SHORT_STRING_MAX - 1);
strcpy(nvss, str.c_str());
}
}