- sprintf(template, "%s/zrsXXXXXX", info->temp_path);
- else
- sprintf(template, "zrsXXXXXX");
+ sprintf(template, "%s/", info->temp_path);
+ strcat(template, "zrs_");
+#if HAVE_UNISTD_H
+ sprintf(template + strlen(template), "%ld_", (long) getpid());
+#endif
+ strcat(template, "XXXXXX");