From 0498e9ad207f9c0f93ab6f974586d8148fd9c8eb Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 31 May 2023 16:46:48 +0100 Subject: Fix calling c_str() for parameters that can take a std::string. --- src/modules/m_showfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_showfile.cpp') diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp index e4241105b..8273885a2 100644 --- a/src/modules/m_showfile.cpp +++ b/src/modules/m_showfile.cpp @@ -66,7 +66,7 @@ public: user->WriteRemoteNumeric(textnumeric, line); if (!endtext.empty() && endnumeric) - user->WriteRemoteNumeric(endnumeric, endtext.c_str()); + user->WriteRemoteNumeric(endnumeric, endtext); } else if (IS_LOCAL(user)) { -- cgit v1.3.1-10-gc9f91