We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a7ac78 commit 9aa1fb9Copy full SHA for 9aa1fb9
stable-diffusion-abi.cpp
@@ -1,6 +1,7 @@
1
#include "stable-diffusion-abi.h"
2
3
#include <string>
4
+#include <cstring>
5
#include <map>
6
/*================================================= StableDiffusion C API =============================================*/
7
@@ -232,6 +233,6 @@ const char* get_stable_diffusion_system_info() {
232
233
std::string info = sd_get_system_info();
234
size_t length = info.size() + 1;
235
char* buffer = new char[length];
- memcpy(buffer, info.c_str(), length);
236
+ std::memcpy(buffer, info.c_str(), length);
237
return buffer;
238
};
0 commit comments