make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minor patch to correct buffer overrun


From: Chris Sutcliffe
Subject: Re: Minor patch to correct buffer overrun
Date: Thu, 26 Aug 2010 12:08:43 -0400

Hi Eli, Paul,

The issue around the PATH_SEPARATOR_CHAR has come to bite the
mingw-w64 folks as well.  To that end, I was thinking if this patch
would be appropriate:

--- make.h.orig 2010-07-20 09:12:06 -0400
+++ make.h      2010-08-26 11:00:05 -0400
@@ -306,13 +306,15 @@
 #define S_(msg1,msg2,num)   ngettext (msg1,msg2,num)

 /* Handle other OSs.  */
-#ifndef PATH_SEPARATOR_CHAR
-# if defined(HAVE_DOS_PATHS)
-#  define PATH_SEPARATOR_CHAR ';'
-# elif defined(VMS)
-#  define PATH_SEPARATOR_CHAR ','
-# else
-#  define PATH_SEPARATOR_CHAR ':'
+#if defined(HAVE_DOS_PATHS)
+# undef PATH_SEPARATOR_CHAR
+# define PATH_SEPARATOR_CHAR ';'
+#elif defined(VMS)
+# undef PATH_SEPARATOR_CHAR
+# define PATH_SEPARATOR_CHAR ','
+#else
+# ifndef PATH_SEPARATOR_CHAR
+#   define PATH_SEPARATOR_CHAR ':'
 # endif
 #endif

Given the assumption that the PATH_SEPARATOR_CHAR is ';' for
HAVE_DOS_PATHS and ',' for VMS, irregardless of what
PATH_SEPARATOR_CHAR was set to previously.

Thoughts?

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d



reply via email to

[Prev in Thread] Current Thread [Next in Thread]