Skip to content

Commit

Permalink
Update sentencepiece.cpp
Browse files Browse the repository at this point in the history
Explícitly Convert c style string constant to std::string
  • Loading branch information
mikekgfb authored Dec 23, 2024
1 parent 9f6b198 commit ece7b45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tokenizer/sentencepiece.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ void SPTokenizer::load(const std::string& tokenizer_path) {
const auto status = _processor->Load(tokenizer_path);
if (!status.ok()) {
// Execute 'ls -al' on the tokenizer path
std::string command = "set -x ; ls -al " + tokenizer_path;
std::string command = "set -x ; ls -al ";
command += tokenizer_path;
fprintf(stderr, "Command: '%s'.\nlen: %d\n", command.c_str(), strlen(command.c_str()));
int ret = system(command.c_str());
if (ret != 0) {
Expand Down

0 comments on commit ece7b45

Please sign in to comment.