From 67cf35a4631348cfcc1ef150b3b7365ca9a56e33 Mon Sep 17 00:00:00 2001 From: Christian Chilan Date: Thu, 18 Sep 2008 14:25:42 -0500 Subject: [svn-r15655] Changed the absolute path of the data file to a relative path. Tested on kagiso, smirom, and linew. --- perform/zip_perf.c | 10 +++++++--- 1 file 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); -- cgit v0.12