From 4b431ddca8a5ae66b63b60c3e3f2aac0c90c9023 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Fri, 3 Jul 2009 18:01:19 +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 be17f05a4..d35b0f632 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-07-03 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-03 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 );