From 14ffe0911f01cc923d25f2053afb1be79b8d7a93 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 22 Mar 2007 06:12:43 +0000 Subject: [PATCH] formatting --- ChangeLog | 4 ++-- builds/unix/ftsystem.c | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 58c9ddfbe..6f06129bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2007-03-22 suzuki toshiya - * builds/unix/ftsystem.c (FT_Stream_Open): Temporal fix to prevent - 32bit unsigned long overflow by 64bit filesize on LP64 platform, + * builds/unix/ftsystem.c (FT_Stream_Open): Temporary fix to prevent + 32bit unsigned long overflow by 64bit filesize on LP64 platform, as proposed by Sean McBride: http://lists.gnu.org/archive/html/freetype-devel/2007-03/msg00032.html diff --git a/builds/unix/ftsystem.c b/builds/unix/ftsystem.c index 79a30d3fb..09dc5b697 100644 --- a/builds/unix/ftsystem.c +++ b/builds/unix/ftsystem.c @@ -4,7 +4,7 @@ /* */ /* Unix-specific FreeType low-level system interface (body). */ /* */ -/* Copyright 1996-2001, 2002, 2004, 2005, 2006 by */ +/* Copyright 1996-2001, 2002, 2004, 2005, 2006, 2007 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -267,11 +267,13 @@ } /* XXX: TODO -- real 64bit platform support */ - /* stream->size is typed to unsigned long (freetype/ftsystem.h) */ - /* stat_buf.st_size is usually typed to off_t (sys/stat.h) */ + /* */ + /* `stream->size' is typedef'd to unsigned long (in */ + /* freetype/ftsystem.h); `stat_buf.st_size', however, is usually */ + /* typedef'd to off_t (in sys/stat.h). */ /* On some platforms, the former is 32bit and the latter is 64bit. */ - /* To avoid overflow caused by font in huge file larger than 2G, */ - /* do a test. Temporal fix proposed by Sean McBride */ + /* To avoid overflow caused by fonts in huge files larger than */ + /* 2GB, do a test. Temporary fix proposed by Sean McBride. */ /* */ if ( stat_buf.st_size > ULONG_MAX ) {