Ensure sufficiently long prefix when creating temp file

Fixes #10265

(cherry picked from commit 446b146f953b41a304840453ef6f1f015c75f082)
This commit is contained in:
arkon
2023-12-24 22:32:23 -05:00
committed by Jobobby04
parent 0dc3b37e70
commit d215944722
2 changed files with 2 additions and 2 deletions
@@ -61,7 +61,7 @@ actual class LocalCoverManager(
// SY -->
if (encrypted) {
val tempFile = File.createTempFile(
targetFile.nameWithoutExtension.orEmpty(),
targetFile.nameWithoutExtension.orEmpty().padEnd(3), // Prefix must be 3+ chars
null,
)
val zip4j = ZipFile(tempFile)