ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/rt/RdataShareFile.cpp
(Generate patch)

Comparing ray/src/rt/RdataShareFile.cpp (file contents):
Revision 2.2 by greg, Wed Oct 30 01:38:21 2024 UTC vs.
Revision 2.4 by greg, Mon Oct 27 18:38:32 2025 UTC

# Line 108 | Line 108 | RdataShareFile::RdataShareFile(const char *name, int f
108                  else if (fstat(fd, &sbuf) >= 0)
109                          siz = sbuf.st_size;
110                  else  {
111 <                        sprintf(errmsg, "cannot stat '%s'", chName);
111 >                        sprintf(errmsg, "cannot stat '%s'", name);
112                          error(SYSTEM, errmsg);
113                          close(fd); fd = -1;
114                          return;
# Line 153 | Line 153 | RdataShareFile::Resize(size_t new_siz)
153                  return osiz = sbuf.st_size;
154          }                               // else attempt to resize file
155          if (ftruncate(fd, new_siz) < 0) {
156 <                sprintf(errmsg, "cannot truncate '%s'", chName);
156 >                sprintf(errmsg, "cannot resize '%s'", chName);
157                  return 0;
158          }
159          return osiz = new_siz;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)