fix format string vulnerability (#223)

This commit is contained in:
12Boti 2023-06-09 14:16:03 +02:00 committed by GitHub
parent b617f2847b
commit e1ab14c4ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)