char *find;
char *value;
size_t size;
+#ifdef _MSC_VER
+ char buffer[64];
+#endif
if (stat(context->name, &finfo))
return util_strdup("\"<failed to determine timestamp>\"");
* ctime and its fucking annoying newline char, no worries, we're
* professionals here.
*/
+
+#ifndef _MSC_VER
find = ctime(&finfo.st_mtime);
+#else
+ ctime_s(buffer, sizeof(buffer), &finfo.st_mtime);
+ find = buffer;
+#endif
+
value = (char*)mem_a(strlen(find) + 1);
memcpy(&value[1], find, (size = strlen(find)) - 1);