From bee9ef0f0804f725b8edb6e3a5a78df64e2f06e9 Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Sun, 6 Aug 2017 00:27:51 +0200 Subject: [PATCH] Fix file path separator --- .../org/jivesoftware/smackx/jft/component/file/LocalFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/jft/component/file/LocalFile.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/jft/component/file/LocalFile.java index 0f6096e86..4fae81e62 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/jft/component/file/LocalFile.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/jft/component/file/LocalFile.java @@ -59,7 +59,7 @@ public class LocalFile extends AbstractJingleFileTransferFile { @Override public String getName() { String path = file.getAbsolutePath(); - return path.substring(path.lastIndexOf(File.pathSeparatorChar) + 1); + return path.substring(path.lastIndexOf(File.separator) + 1); } @Override