Improve the variable types in raccess_make_file_name().

This commit is contained in:
suzuki toshiya 2009-08-01 00:30:12 +09:00
parent 61fa1b53c2
commit 2ed9d7fc75
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,13 @@
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
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 <mpsuzuki@hiroshima-u.ac.jp> 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
ftpatent.c: Fix for unused variable `error'. ftpatent.c: Fix for unused variable `error'.

View File

@ -752,9 +752,9 @@
const char *insertion ) const char *insertion )
{ {
char* new_name; char* new_name;
char* tmp; const char* tmp;
const char* slash; const char* slash;
unsigned new_length; size_t new_length;
FT_Error error = FT_Err_Ok; FT_Error error = FT_Err_Ok;
FT_UNUSED( error ); FT_UNUSED( error );