[FriBidi-commit] fribidi2/lib fribidi-deprecated.c,1.2,1.3

Behdad Esfahbod behdad at freedesktop.org
Sun Jan 22 02:11:25 PST 2006


Update of /cvs/fribidi/fribidi2/lib
In directory gabe:/tmp/cvs-serv5945

Modified Files:
	fribidi-deprecated.c 
Log Message:
Use memcpy for duplicating str.


Index: fribidi-deprecated.c
===================================================================
RCS file: /cvs/fribidi/fribidi2/lib/fribidi-deprecated.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- fribidi-deprecated.c	14 Jan 2006 12:09:29 -0000	1.2
+++ fribidi-deprecated.c	22 Jan 2006 10:11:23 -0000	1.3
@@ -255,8 +255,11 @@
 
   if (visual_str)
     {
+      /* Using memcpy instead
       for (i = len - 1; i >= 0; i--)
 	visual_str[i] = str[i];
+      */
+      memcpy (visual_str, str, len * sizeof (*visual_str));
 
       /* Arabic joining */
       ar_props = fribidi_malloc (len * sizeof ar_props[0]);



More information about the fribidi-commit mailing list