Skip to content

Commit

Permalink
fix: return the number of bytes copied
Browse files Browse the repository at this point in the history
  • Loading branch information
agparadiso committed Jan 9, 2025
1 parent 0ae96d5 commit fed0e8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/workflows/wasm/host/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,5 @@ func write(memory, src []byte, ptr, size int32) int64 {
return -1
}
buffer := memory[ptr : ptr+size]
dataLen := int64(len(src))
copy(buffer, src)
return dataLen
return int64(copy(buffer, src))
}

0 comments on commit fed0e8b

Please sign in to comment.