~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/readblenfile/intern/BLO_readblenfile.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: BLO_readblenfile.c,v 1.7 2004/04/24 06:29:51 kester Exp $
 
2
 * $Id: BLO_readblenfile.c,v 1.9 2005/01/20 10:33:11 ton Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
136
136
        BlendReadError *error_r) 
137
137
{
138
138
        BlendFileData *bfd= NULL;
139
 
        void *filedata= NULL;
140
139
        int fd, actualsize, datastart;
141
140
        char buf[8];
142
141
 
164
163
                //printf("starting to read runtime from %s at datastart %d\n", path, datastart);
165
164
                lseek(fd, datastart, SEEK_SET);
166
165
                bfd = blo_read_blendafterruntime(fd, actualsize-datastart, error_r);
 
166
                fd= -1; // file was closed in blo_read_blendafterruntime()
167
167
        }
168
168
        
169
169
cleanup: