From 2ed9d7fc7520e6bee850342be9f8fe6947ea03cb Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Sat, 1 Aug 2009 00:30:12 +0900 Subject: [PATCH] Improve the variable types in raccess_make_file_name(). --- ChangeLog | 10 ++++++++++ src/base/ftrfork.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 199399ac2..a84558c6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-07-31 suzuki toshiya + + 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 ftpatent.c: Fix for unused variable `error'. diff --git a/src/base/ftrfork.c b/src/base/ftrfork.c index d59a07611..133c2de05 100644 --- 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 );