From d40f24b10e8da1895563e7432a4128abb3f5953a Mon Sep 17 00:00:00 2001 From: "Gregory J. Ward" Date: Mon, 9 Dec 2024 22:26:01 +0000 Subject: [PATCH] fix: Bad string reference in error call --- src/rt/RdataShareFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/RdataShareFile.cpp b/src/rt/RdataShareFile.cpp index 4ace3bd1..5c5cc56f 100644 --- a/src/rt/RdataShareFile.cpp +++ b/src/rt/RdataShareFile.cpp @@ -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 @@ -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;