filename | src/mem.c |
changeset | 72:ceb5985fa8d8 |
prev | 50:704b11c879cb |
next | 146:f91fa34ab219 |
author | nkeynes |
date | Thu Mar 30 11:29:54 2006 +0000 (18 years ago) |
permissions | -rw-r--r-- |
last change | Differentiate between flat + gouraud shaded polys - use colour of first vertex only Remove vertex count checks - doesn't seem to be correct anyway. Add check for unrecognized command codes other minor tweaks |
file | annotate | diff | log | raw |
1.1 --- a/src/mem.c Wed Dec 28 22:47:44 2005 +00001.2 +++ b/src/mem.c Thu Mar 30 11:29:54 2006 +00001.3 @@ -1,5 +1,5 @@1.4 /**1.5 - * $Id: mem.c,v 1.10 2005-12-28 22:47:44 nkeynes Exp $1.6 + * $Id: mem.c,v 1.11 2006-01-10 14:00:00 nkeynes Exp $1.7 * mem.c is responsible for creating and maintaining the overall system memory1.8 * map, as visible from the SH4 processor.1.9 *1.10 @@ -200,7 +200,7 @@1.11 if( f == NULL )1.12 return errno;1.13 fstat( fileno(f), &st );1.14 - if( length == 0 || length == -1 )1.15 + if( length == 0 || length == -1 || length > st.st_size )1.16 length = st.st_size;1.18 while( total < length ) {
.