dtprintinfo: Resolve format-overflow issues

This commit is contained in:
Peter Howkins
2021-12-23 19:50:38 +00:00
committed by Jon Trulson
parent bf266ee14b
commit 16c3ed3650
3 changed files with 4 additions and 4 deletions

View File

@@ -389,7 +389,7 @@ void DtFindD::Stop()
for (i = 0; i < n_matches; i++)
{
DtPrtJobIcon *job = (DtPrtJobIcon *)matches[i];
char number[9];
char number[12];
sprintf(number, "%d", job->Order() + 1);
fields->fields[0] = (char *)job->Parent()->Parent()->Name();
if (n_fields == 3)