Improve the variable types in raccess_make_file_name().

This commit is contained in:
suzuki toshiya 2009-07-03 18:01:19 +09:00
parent ab888c9c87
commit 4b431ddca8
2 changed files with 12 additions and 2 deletions

View File

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

View File

@ -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 );