We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
const char*
1 parent 92e838c commit d18f24fCopy full SHA for d18f24f
1 file changed
system/lib/wasmfs/js_api.cpp
@@ -64,7 +64,7 @@ int _wasmfs_read_file(const char* path, uint8_t** out_buf, off_t* out_size) {
64
65
// Writes to a file, possibly creating it, and returns the number of bytes
66
// written successfully. If the file already exists, appends to it.
67
-int _wasmfs_write_file(const char* pathname, char* data, size_t data_size) {
+int _wasmfs_write_file(const char* pathname, const char* data, size_t data_size) {
68
auto parsedParent = path::parseParent(pathname);
69
if (parsedParent.getError()) {
70
return 0;
0 commit comments