summaryrefslogtreecommitdiffstats
path: root/perform
diff options
context:
space:
mode:
authorChristian Chilan <chilan@hdfgroup.org>2008-09-18 19:24:32 (GMT)
committerChristian Chilan <chilan@hdfgroup.org>2008-09-18 19:24:32 (GMT)
commit6ddb6ed83f9a662559b83bb672244818177ebe0d (patch)
treef8a829b2d013e25fa63c5c3e84228e94465eebce /perform
parentc50c3789face27c389e112b4141318b8f3d8ce73 (diff)
downloadhdf5-6ddb6ed83f9a662559b83bb672244818177ebe0d.zip
hdf5-6ddb6ed83f9a662559b83bb672244818177ebe0d.tar.gz
hdf5-6ddb6ed83f9a662559b83bb672244818177ebe0d.tar.bz2
[svn-r15654] Changed the absolute path of the data file to a relative path.
Tested on kagiso, smirom, and linew.
Diffstat (limited to 'perform')
-rw-r--r--perform/zip_perf.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/perform/zip_perf.c b/perform/zip_perf.c
index c2ba1fc..35a3706 100644
--- a/perform/zip_perf.c
+++ b/perform/zip_perf.c
@@ -321,14 +321,18 @@ uncompress_buffer(Bytef *dest, uLongf *destLen, const Bytef *source,
static void
get_unique_name(void)
{
- const char *prefix = "/tmp", *tmpl = "/zip_perf.data";
+ const char *prefix = "", *tmpl = "zip_perf.data";
const char *env = getenv("HDF5_PREFIX");
- if (env)
+ if (env) {
prefix = env;
+ strcat(prefix, "/");
+ }
- if (option_prefix)
+ if (option_prefix) {
prefix = option_prefix;
+ strcat(prefix, "/");
+ }
filename = calloc(1, strlen(prefix) + strlen(tmpl) + 1);