You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2013/03/14 00:46:42 UTC
[2/2] webworks commit: [CB-2649] ammended solution: includes Absolute
Value function wrapper, preventing negative values for directory names,
as - symbol was causing a crash
Updated Branches:
refs/heads/master 780161d1e -> c57ceeb98
[CB-2649] ammended solution: includes Absolute Value function wrapper, preventing negative values for directory names, as - symbol was causing a crash
Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/c57ceeb9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/c57ceeb9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/c57ceeb9
Branch: refs/heads/master
Commit: c57ceeb98a4b7dfaa344d946d7aed18616cf82c7
Parents: 703b93b
Author: doggerelverse <lo...@adobe.com>
Authored: Wed Mar 13 16:36:28 2013 -0700
Committer: doggerelverse <lo...@adobe.com>
Committed: Wed Mar 13 16:36:28 2013 -0700
----------------------------------------------------------------------
.../ext/src/org/apache/cordova/util/FileUtils.java | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/c57ceeb9/framework/ext/src/org/apache/cordova/util/FileUtils.java
----------------------------------------------------------------------
diff --git a/framework/ext/src/org/apache/cordova/util/FileUtils.java b/framework/ext/src/org/apache/cordova/util/FileUtils.java
index 6f2f1e7..9ea21a3 100644
--- a/framework/ext/src/org/apache/cordova/util/FileUtils.java
+++ b/framework/ext/src/org/apache/cordova/util/FileUtils.java
@@ -52,11 +52,9 @@ public class FileUtils {
// init APP_TMP_DIR with a random value
static {
Random gen = new Random();
- APP_TMP_DIR = "tmp" + gen.nextInt();
+ APP_TMP_DIR = "tmp" + Math.abs(gen.nextInt());
}
- // private static long APP_TMP_DIR =
-
/**
* Reads file as byte array.
* @param filePath Full path of the file to be read