Skip to content

Commit

Permalink
llama_split_prefix: changed signature
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Mar 22, 2024
1 parent 39e89d1 commit 3c68a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ struct llama_model * llama_load_model_from_url(const char * model_url, const cha
char split_path[PATH_MAX] = {0};
strncpy(split_path, path_model, sizeof(split_path) - 1);
char split_prefix[PATH_MAX] = {0};
if (!llama_split_prefix(split_prefix, split_path, strlen(split_path), 0, n_split)) {
if (!llama_split_prefix(split_prefix, sizeof(split_prefix), split_path, 0, n_split)) {
fprintf(stderr, "\n%s: unexpected input file name: %s"
" n_split=%d\n", __func__, split_path, n_split);
return NULL;
Expand Down

0 comments on commit 3c68a4d

Please sign in to comment.