libtool-patches
[Top][All Lists]
Advanced

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

Re: latest cygwin patches


From: Charles Wilson
Subject: Re: latest cygwin patches
Date: Mon, 28 Oct 2002 21:37:22 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2

As promised...


In a followup, I will post the "rest" of Marius' patch (e.g. the portion that is NOT already in CVS and NOT included in the patch here) for others to review.

--Chuck
2002-10-04  Rob Browning  <address@hidden>

        * ltdl.c (LT_EOS_CHAR): moved here from ltdl.h.
        (memcpy): coerce ptrs to (char *) before copying
        characters through them -- I can't recall for sure, but I
        believe this was causing an overrun error at times.
        * ltdl.h (LT_EOS_CHAR): moved to ltdl.c.

--- ltdl.h      2002-10-25 17:55:30.000000000 +0200
+++ raw-ltdl.guilemod.h 2002-10-26 16:32:35.000000000 +0200
@@ -28,15 +28,13 @@
 #ifndef LTDL_H
 #define LTDL_H 1
 
 #include <sys/types.h> /* for size_t declaration */
 
 
 /* --- MACROS FOR PORTABILITY --- */
 
-
-/* Saves on those hard to debug '\0' typos....  */
-#define LT_EOS_CHAR    '\0'
-
 /* LTDL_BEGIN_C_DECLS should be used at the beginning of your declarations,
    so that C++ compilers don't mangle their names.  Use LTDL_END_C_DECLS at
    the end of C declarations. */
--- ltdl.c      2002-10-25 17:55:30.000000000 +0200
+++ raw-ltdl.guilemod.c 2002-10-26 16:32:35.000000000 +0200
@@ -92,13 +92,15 @@
 #  define assert(arg)  ((void) 0)
 #endif
 
 #include "ltdl.h"
 
 #if WITH_DMALLOC
 #  include <dmalloc.h>
#endif
 
 
+/* Saves on those hard to debug '\0' typos....  */
+#define LT_EOS_CHAR    '\0'
 
 
 /* --- WINDOWS SUPPORT --- */
@@ -333,7 +335,7 @@
 
   for (i = 0; i < size; ++i)
     {
-      dest[i] = src[i];
+      ((char *) dest)[i] = ((char *) src)[i];
     }
 
   return dest;

reply via email to

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