X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Fgtkdirsel.c;h=6a932ed098cdd29bd407682e00103756faa21fd2;hb=20640e7057725a118fcca68e8675946561293a75;hp=a52e877db1c5fee86df556ad5f7b9f5e96a2a8a7;hpb=754351700b3d5fb6112e72dd4722a546abc219f1;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/gtkdirsel.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/gtkdirsel.c index a52e877d..6a932ed0 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/gtkdirsel.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/gtkdirsel.c @@ -21,6 +21,7 @@ #include #include #include +#include // For PATH_MAX #ifdef HAVE_SYS_PARAM_H #include #endif @@ -416,7 +417,7 @@ translate_win32_path (GtkDirSelection *filesel) { int updated = 0; const gchar *path; - gchar newPath[MAX_PATH]; + gchar newPath[PATH_MAX]; /* * Retrieve the current path @@ -1916,7 +1917,7 @@ get_real_filename (gchar *filename, /* Check to see if the selection was a drive selector */ if (isalpha (filename[0]) && (filename[1] == ':')) { - gchar temp_filename[MAX_PATH]; + gchar temp_filename[PATH_MAX]; int len; cygwin_conv_to_posix_path (filename, temp_filename);