summaryrefslogtreecommitdiffstats
path: root/perform/zip_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'perform/zip_perf.c')
-rw-r--r--perform/zip_perf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/perform/zip_perf.c b/perform/zip_perf.c
index 9514dc0..d5ea5cb 100644
--- a/perform/zip_perf.c
+++ b/perform/zip_perf.c
@@ -324,7 +324,7 @@ uncompress_buffer(Bytef *dest, uLongf *destLen, const Bytef *source,
static void
get_unique_name(void)
{
- const char *prefix = "/tmp", *template = "/zip_perf_XXXXXX";
+ const char *prefix = "/tmp", *templte = "/zip_perf_XXXXXX";
const char *env = getenv("HDF5_PREFIX");
if (env)
@@ -333,13 +333,13 @@ get_unique_name(void)
if (option_prefix)
prefix = option_prefix;
- filename = calloc(1, strlen(prefix) + strlen(template) + 1);
+ filename = calloc(1, strlen(prefix) + strlen(templte) + 1);
if (!filename)
error("out of memory");
strcpy(filename, prefix);
- strcat(filename, template);
+ strcat(filename, templte);
output = mkstemp(filename);
if (output == -1)