Permalink
Browse files

Fixed not using getSuffix

I didn't notice this line when changing pieces of code to getSuffix(),
but now I have changed it into using getSuffix.
  • Loading branch information...
1 parent 0fe08aa commit 31244e705a70470d4820de3674a0d35354c8e282 @Sammidysam committed Apr 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gamepatcher/Downloader.java
@@ -162,7 +162,7 @@ public void downloadFiles(){
FileOutputStream fos = null;
try {
// creates file in temporary directory to be downloaded to, so that the main file isn't lost if the download is aborted
- File temp = File.createTempFile("tempFile", filePath.substring(filePath.lastIndexOf('.'), filePath.length()));
+ File temp = File.createTempFile("tempFile", getSuffix(filePath));
// the file will be deleted upon exit unless the download is aborted mid-way
temp.deleteOnExit();
URL file = new URL(fileSite);

0 comments on commit 31244e7

Please sign in to comment.