Skip to content

Commit 7df1312

Browse files
committed
Bug Fix
1 parent 7b7a7a0 commit 7df1312

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static String getFileHeaderMagicNumber(byte[] fileContents)
179179
public static File autoAppendFileExtension(String extension, File file)
180180
{
181181
if (!file.getName().endsWith(extension))
182-
file = new File(file.getName() + extension);
182+
file = new File(file.getAbsolutePath() + extension);
183183

184184
return file;
185185
}

0 commit comments

Comments
 (0)