Skip to content

Commit 7ffdaab

Browse files
committed
WasmFS JS API: prefer const char*
1 parent 476c428 commit 7ffdaab

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
@@ -69,7 +69,7 @@ void* _wasmfs_read_file(const char* path) {
6969

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

0 commit comments

Comments
 (0)