shithub: freetype+ttf2subf

Download patch

ref: 2ed9d7fc7520e6bee850342be9f8fe6947ea03cb
parent: 61fa1b53c216adadd6078c66d8ff4cd10dfca8f4
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:30:12 EDT 2009

Improve the variable types in raccess_make_file_name().

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2009-07-31  suzuki toshiya <[email protected]>
 
+	Improve the variable types in raccess_make_file_name().
+
+	* src/base/ftrfork.c (raccess_make_file_name):
+	Change the type of cursor variable `tmp' to const char*,
+	to prevent the unexpected modification of original pathname.
+	(raccess_make_file_name): Change the type of new_length
+	to size_t.
+
+2009-07-31  suzuki toshiya <[email protected]>
+
 	ftpatent.c: Fix for unused variable `error'.
 
 	* src/base/ftpatent.c (_tt_check_patents_in_range):
--- a/src/base/ftrfork.c
+++ b/src/base/ftrfork.c
@@ -752,9 +752,9 @@
                           const char  *insertion )
   {
     char*        new_name;
-    char*        tmp;
+    const char*  tmp;
     const char*  slash;
-    unsigned     new_length;
+    size_t       new_length;
     FT_Error     error = FT_Err_Ok;
 
     FT_UNUSED( error );