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

Comparing ray/src/rt/RdataShareMap.cpp (file contents):
Revision 2.3 by greg, Thu Oct 31 23:55:04 2024 UTC vs.
Revision 2.5 by greg, Mon Oct 27 18:38:32 2025 UTC

# Line 68 | Line 68 | RdataShareMap::RdataShareMap(const char *name, int fla
68                          else if (fstat(fd, &sbuf) >= 0)
69                                  siz = sbuf.st_size;
70                          else {
71 <                                sprintf(errmsg, "cannot stat '%s'", chName);
71 >                                sprintf(errmsg, "cannot stat '%s'", name);
72                                  error(SYSTEM, errmsg);
73                                  close(fd);
74                                  return;
# Line 165 | Line 165 | RdataShareMap::Resize(size_t new_siz)
165                          return osiz = 0;
166                  }
167          } else if (truncate(chName, new_siz) < 0) {
168 <                sprintf(errmsg, "cannot truncate '%s'", chName);
168 >                sprintf(errmsg, "cannot resize '%s'", chName);
169                  return 0;
170          }
171          return osiz = new_siz;

Diff Legend

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