OSDN Git Service

Add support for linux-ftpd (untested).
[ffftp/ffftp.git] / misc.c
diff --git a/misc.c b/misc.c
index 5c8bb14..5489e66 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1777,3 +1777,14 @@ char* MakeDistinguishableFileName(char* Out, char* In)
        return Out;\r
 }\r
 \r
+// 環境依存の不具合対策\r
+char* GetAppTempPath(char* Buf)\r
+{\r
+       char Temp[32];\r
+       GetTempPath(MAX_PATH, Buf);\r
+       SetYenTail(Buf);\r
+       sprintf(Temp, "ffftp%08x", GetCurrentProcessId());\r
+       strcat(Buf, Temp);\r
+       return Buf;\r
+}\r
+\r