summaryrefslogtreecommitdiffstats
path: root/perform/zip_perf.c
diff options
context:
space:
mode:
authorChristian Chilan <chilan@hdfgroup.org>2008-09-18 19:25:42 (GMT)
committerChristian Chilan <chilan@hdfgroup.org>2008-09-18 19:25:42 (GMT)
commit67cf35a4631348cfcc1ef150b3b7365ca9a56e33 (patch)
tree328fde7008332df1bbe43bfb3bb79113fddfeb98 /perform/zip_perf.c
parent6eb624a09d282d0f1346afe769f0fb2654b4de58 (diff)
downloadhdf5-67cf35a4631348cfcc1ef150b3b7365ca9a56e33.zip
hdf5-67cf35a4631348cfcc1ef150b3b7365ca9a56e33.tar.gz
hdf5-67cf35a4631348cfcc1ef150b3b7365ca9a56e33.tar.bz2
[svn-r15655] Changed the absolute path of the data file to a relative path.
Tested on kagiso, smirom, and linew.
Diffstat (limited to 'perform/zip_perf.c')
-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);