| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 80fdb3d commit c01c72b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,8 @@ void CallWithString(const FunctionCallbackInfo<Value>& args) { | |||
| 23 | 23 | Local<String> str = args[0].As<String>(); | |
| 24 | 24 | const size_t length = str->Utf8LengthV2(args.GetIsolate()) + 1; | |
| 25 | 25 | char* buf = new char[length]; | |
| 26 | - str->WriteUtf8(args.GetIsolate(), buf, length); | ||
| 26 | + str->WriteUtf8V2( | ||
| 27 | + args.GetIsolate(), buf, length, String::WriteFlags::kNullTerminate); | ||
| 27 | 28 | delete[] buf; | |
| 28 | 29 | } | |
| 29 | 30 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments