freebsd-ports/devel/mpatrol/files/patch-..__..__tools__dmalloc.c
Jan Beich bdc5bab765 devel/mpatrol: unbreak with libc++ 3.9
../../tools/dmalloc.c:412:20: error: assigning to 'char *' from incompatible type 'const char *'
        else if (t = strchr(ESCAPE_CHARS, p[i]))
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~

Reported by:	pkg-fallout
2017-02-01 12:29:37 +00:00

11 lines
269 B
C

--- ../../tools/dmalloc.c.orig 2002-01-08 20:05:10 UTC
+++ ../../tools/dmalloc.c
@@ -395,7 +395,7 @@ static
char *
bytestring(char *b, size_t s, char *p, size_t l)
{
- char *t;
+ const char *t;
size_t i, n;
for (i = n = 0; (i < s) && (i < l); i++)