Skip to content

Commit

Permalink
Merge pull request #106 from CharlieTap/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalossilva committed Mar 27, 2024
2 parents f03abfd + 9e7809d commit ccf8f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources-library/src/posixMain/kotlin/Resource.kt
Expand Up @@ -33,7 +33,7 @@ public actual class Resource actual constructor(private val path: String) {
}

public actual fun readBytes(): ByteArray = mutableListOf<Byte>().apply {
val file = fopen(path, "r")
val file = fopen(path, "rb")
?: throw FileReadException("$path: Open failed: ${strerror(posix_errno())}")
try {
memScoped {
Expand Down

0 comments on commit ccf8f33

Please sign in to comment.