Skip to content

Commit

Permalink
Fix string litteral
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Nov 29, 2023
1 parent 53b8a2a commit 0942f1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rlasstreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void RLASstreamer::allocation()
else
{
std::string msg = std::string("data type ") + std::to_string(extrabyte.data_type) + std::string(" of extra bytes attribute ") + std::to_string(extrabyte.id) + std::string(" is deprecated and not supported by rlas.");
Rf_warningcall(R_NilValue, msg.c_str());
Rf_warningcall(R_NilValue, "%s", msg.c_str());
}
}
}
Expand Down Expand Up @@ -846,13 +846,13 @@ List RLASstreamer::terminate()
if (nwithheld > 0)
{
std::string msg = std::string("There are ") + std::to_string(nwithheld) + std::string(" points flagged 'withheld'.");
Rf_warningcall(R_NilValue, msg.c_str());
Rf_warningcall(R_NilValue, "%s", msg.c_str());
}

if (nsynthetic > 0)
{
std::string msg = std::string("There are ") + std::to_string(nwithheld) + std::string(" points flagged 'synthetic'.");
Rf_warningcall(R_NilValue, msg.c_str());
Rf_warningcall(R_NilValue, "%s", msg.c_str());
}

lasdata.names() = attr_name;
Expand Down

0 comments on commit 0942f1c

Please sign in to comment.