diff options
author | Christian Chilan <chilan@hdfgroup.org> | 2008-09-18 19:24:32 (GMT) |
---|---|---|
committer | Christian Chilan <chilan@hdfgroup.org> | 2008-09-18 19:24:32 (GMT) |
commit | 6ddb6ed83f9a662559b83bb672244818177ebe0d (patch) | |
tree | f8a829b2d013e25fa63c5c3e84228e94465eebce /perform | |
parent | c50c3789face27c389e112b4141318b8f3d8ce73 (diff) | |
download | hdf5-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.c | 10 |
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); |