Turn 'Filename' into a dynamically allocated type with no arbitrary
[u/mdw/putty] / windows / winstuff.h
index e23ed4e..e8b70d4 100644 (file)
@@ -16,9 +16,9 @@
 #include "winhelp.h"
 
 struct Filename {
-    char path[FILENAME_MAX];
+    char *path;
 };
-#define f_open(filename, mode, isprivate) ( fopen((filename).path, (mode)) )
+#define f_open(filename, mode, isprivate) ( fopen((filename)->path, (mode)) )
 
 struct FontSpec {
     char *name;