summaryrefslogtreecommitdiff
path: root/devel/gcvs/files/patch-cvsunix-lib_regex.c
blob: 7abc15e4cf02834ba509bca1d71829a10b0a94bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- cvsunix/lib/regex.c.orig	2007-11-22 20:19:42.000000000 +0100
+++ cvsunix/lib/regex.c	2007-11-22 20:32:54.000000000 +0100
@@ -4909,7 +4909,7 @@
 		/* Compare that many; failure if mismatch, else move
 		   past them.  */
 		if (RE_TRANSLATE_P (translate)
-		    ? bcmp_translate (d, d2, mcnt, translate)
+		    ? bcmp_translate ((unsigned char *)d, (unsigned char *)d2, mcnt, translate)
 		    : bcmp (d, d2, mcnt))
 		  goto fail;
 		d += mcnt, d2 += mcnt;