ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rhcopy.c
(Generate patch)

Comparing ray/src/hd/rhcopy.c (file contents):
Revision 3.19 by schorsch, Sun Jul 27 22:12:02 2003 UTC vs.
Revision 3.20 by greg, Mon Oct 20 16:01:55 2003 UTC

# Line 6 | Line 6 | static const char      RCSid[] = "$Id$";
6   */
7  
8   #include "holo.h"
9 + #include "platform.h"
10   #include "view.h"
11  
12   #ifndef BKBSIZE
# Line 128 | Line 129 | int    append;
129          nextloc = ftell(fp);                    /* get stdio position */
130          fclose(fp);                             /* done with stdio */
131          for (n = 0; nextloc > 0L; n++) {        /* initialize each section */
132 <                lseek(fd, (off_t)nextloc, 0);
132 >                lseek(fd, (off_t)nextloc, SEEK_SET);
133                  read(fd, (char *)&nextloc, sizeof(nextloc));
134                  hdinit(fd, NULL)->priv = hflags&H_OBST ? &obstr :
135                                  hflags&H_OBSF ? &unobstr : (char *)NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines