[Commit] fontconfig/src fcxml.c,1.27,1.27.2.1

Keith Packard commit at keithp.com
Wed Jul 9 11:05:01 PDT 2003


Committed by: keithp

Update of /local/src/CVS/fontconfig/src
In directory home.keithp.com:/tmp/cvs-serv31679

Modified Files:
      Tag: fc-2_2_branch
	fcxml.c 
Log Message:
Was miscomputing end of string position for FcStrtod in locales with multibyte separators (2.2 branch)

Index: fcxml.c
===================================================================
RCS file: /local/src/CVS/fontconfig/src/fcxml.c,v
retrieving revision 1.27
retrieving revision 1.27.2.1
diff -u -d -r1.27 -r1.27.2.1
--- fcxml.c	15 Apr 2003 23:38:06 -0000	1.27
+++ fcxml.c	9 Jul 2003 17:04:59 -0000	1.27.2.1
@@ -962,7 +962,7 @@
 	    buf_end = 0;
 	    v = strtod (buf, &buf_end);
 	    if (buf_end)
-		buf_end = s + (buf_end - buf);
+		buf_end = s + (buf_end - buf) + 1 - dlen;
 	    if (end)
 		*end = buf_end;
 	}




More information about the Commit mailing list