Skip to content

Commit d18f24f

Browse files
committed
WasmFS JS API: prefer const char*
1 parent 92e838c commit d18f24f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/lib/wasmfs/js_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ int _wasmfs_read_file(const char* path, uint8_t** out_buf, off_t* out_size) {
6464

6565
// Writes to a file, possibly creating it, and returns the number of bytes
6666
// written successfully. If the file already exists, appends to it.
67-
int _wasmfs_write_file(const char* pathname, char* data, size_t data_size) {
67+
int _wasmfs_write_file(const char* pathname, const char* data, size_t data_size) {
6868
auto parsedParent = path::parseParent(pathname);
6969
if (parsedParent.getError()) {
7070
return 0;

0 commit comments

Comments
 (0)