From 7d66d2d8ab8ff79dcef8f76b4df9d531fae11f26 Mon Sep 17 00:00:00 2001 From: Darius Maitia Date: Thu, 8 Feb 2024 16:56:12 +0100 Subject: [PATCH] fix(windows loading): expliciting temp file suffix --- zenoh-kotlin/src/jvmMain/kotlin/io/zenoh/Zenoh.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenoh-kotlin/src/jvmMain/kotlin/io/zenoh/Zenoh.kt b/zenoh-kotlin/src/jvmMain/kotlin/io/zenoh/Zenoh.kt index 5ed58f09..d6b7dd9b 100644 --- a/zenoh-kotlin/src/jvmMain/kotlin/io/zenoh/Zenoh.kt +++ b/zenoh-kotlin/src/jvmMain/kotlin/io/zenoh/Zenoh.kt @@ -115,7 +115,7 @@ internal actual class Zenoh private actual constructor() { @Suppress("UnsafeDynamicallyLoadedCode") private fun loadZenohJNI(inputStream: InputStream) { - val tempLib = File.createTempFile("tempLib", "") + val tempLib = File.createTempFile("tempLib", ".tmp") tempLib.deleteOnExit() FileOutputStream(tempLib).use { output ->