shithub: freetype+ttf2subf

Download patch

ref: 28b55a9bb6ddb15a15a49c8a3ac6cf83e4f93130
parent: 37827608c258016d705c29408ffc7e34703a9062
author: Yamato, Masatake (大和正武) <[email protected]>
date: Wed May 10 23:01:42 EDT 2006

(FT_Stream_Open): Check errno only if read system call returns -1.
Remove a redundant parenthesis.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-05-11  Masatake YAMATO  <[email protected]>
+ 
+	* builds/unix/ftsystem.c (FT_Stream_Open): Check errno only if 
+	read system call returns -1.
+	Remove a redundant parenthesis.
+
 2006-05-10  Werner Lemberg  <[email protected]>
 
 	* builds/unix/ftsystem.c (FT_Stream_Open): Avoid infinite loop if
--- a/builds/unix/ftsystem.c
+++ b/builds/unix/ftsystem.c
@@ -303,9 +303,9 @@
                            stream->base + total_read_count,
                            stream->size - total_read_count );
 
-        if ( ( read_count <= 0 ) )
+        if ( read_count <= 0 )
         {
-          if ( errno == EINTR )
+          if ( read_count == -1 && errno == EINTR )
             continue;
 
           FT_ERROR(( "FT_Stream_Open:" ));