fix format string vulnerability (#223)
This commit is contained in:
parent
b617f2847b
commit
e1ab14c4ab
1 changed files with 1 additions and 3 deletions
|
@ -949,9 +949,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs, generation_o
|
|||
}
|
||||
::utreplace(tmp, "\n", "\\n");
|
||||
outstr += tmp;
|
||||
printf(outstr.c_str());
|
||||
|
||||
printf("\n\n");
|
||||
printf("%s\n\n", outstr.c_str());
|
||||
}
|
||||
|
||||
while (remaining_tokens > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue