server,common : fix the GCC 12 stringop-overread false positive (again) (#29325)
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
1 parent
4c5957c277
commit
2b70583997
2 files changed
+2
-4
No files matched your search
@@ -2060,7 +2060,7 @@ private:
|
||||
res->is_begin = true;
|
||||
} else {
|
||||
res->content = tkn.text_to_send;
|
||||
res->tokens = { tkn.tok };
|
||||
res->tokens.assign(1, tkn.tok);
|
||||
}
|
||||
|
||||
res->n_decoded = slot.stats.n_gen;
|
||||
|
||||
Reference in new issue
Block a user