Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit ece7b45

Browse files
authored
Update sentencepiece.cpp
Explícitly Convert c style string constant to std::string
1 parent 9f6b198 commit ece7b45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tokenizer/sentencepiece.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ void SPTokenizer::load(const std::string& tokenizer_path) {
4141
const auto status = _processor->Load(tokenizer_path);
4242
if (!status.ok()) {
4343
// Execute 'ls -al' on the tokenizer path
44-
std::string command = "set -x ; ls -al " + tokenizer_path;
44+
std::string command = "set -x ; ls -al ";
45+
command += tokenizer_path;
4546
fprintf(stderr, "Command: '%s'.\nlen: %d\n", command.c_str(), strlen(command.c_str()));
4647
int ret = system(command.c_str());
4748
if (ret != 0) {

0 commit comments

Comments
 (0)