From cf0342d9d85ba370cbdc1b66c802b531a58c406a Mon Sep 17 00:00:00 2001
From: Tobias Scheuer <tobias.scheuer@sap.com>
Date: Sat, 27 Dec 2014 09:53:44 +0100
Subject: [PATCH] fix comilation on Windows

---
 addons/native_dialog/win_dialog.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/addons/native_dialog/win_dialog.c b/addons/native_dialog/win_dialog.c
index 04bd873..a47b9a6 100644
--- a/addons/native_dialog/win_dialog.c
+++ b/addons/native_dialog/win_dialog.c
@@ -144,8 +144,8 @@ bool _al_show_native_file_dialog(ALLEGRO_DISPLAY *display,
    ALLEGRO_DISPLAY_WIN *win_display;
    int flags = 0;
    bool ret;
-   const int BUFSIZE = 4096;
-   char buf[BUFSIZE];
+   char buf[4096];
+   const int BUFSIZE = sizeof(buf);
    ALLEGRO_USTR *filter_string = NULL;
    ALLEGRO_PATH* initial_dir_path = NULL;
 
-- 
1.9.4.msysgit.0

