Skip to content

Commit

Permalink
fix: Bad string reference in error call
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Dec 9, 2024
1 parent 1e5553a commit d40f24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rt/RdataShareFile.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: RdataShareFile.cpp,v 2.2 2024/10/30 01:38:21 greg Exp $";
static const char RCSid[] = "$Id: RdataShareFile.cpp,v 2.3 2024/12/09 22:26:01 greg Exp $";
#endif
/*
* RdataShareFile.cpp
Expand Down Expand Up @@ -108,7 +108,7 @@ RdataShareFile::RdataShareFile(const char *name, int flags, size_t siz)
else if (fstat(fd, &sbuf) >= 0)
siz = sbuf.st_size;
else {
sprintf(errmsg, "cannot stat '%s'", chName);
sprintf(errmsg, "cannot stat '%s'", name);
error(SYSTEM, errmsg);
close(fd); fd = -1;
return;
Expand Down

0 comments on commit d40f24b

Please # to comment.