int len;
char tbuf[80];
char str1[20], str2[20];
+#ifndef VMS
+ const char temp_ext[] = ".TEMP";
+#else
+ const char temp_ext[] = "-TEMP";
+#endif
/*
* Expand environment strings under Windows NT, since the
stats_temp_file = erealloc(stats_temp_file,
len + sizeof(".TEMP"));
- memmove(stats_drift_file, value, (unsigned)(len+1));
- memmove(stats_temp_file, value, (unsigned)len);
- memmove(stats_temp_file + len,
-#if !defined(VMS)
- ".TEMP", sizeof(".TEMP"));
-#else
- "-TEMP", sizeof("-TEMP"));
-#endif /* VMS */
+ memcpy(stats_drift_file, value, (unsigned)(len+1));
+ memcpy(stats_temp_file, value, (unsigned)len);
+ memcpy(stats_temp_file + len, temp_ext,
+ sizeof(temp_ext));
/*
* Open drift file and read frequency. If the file is