dtprintinfo: Resolve format-overflow issues
This commit is contained in:
committed by
Jon Trulson
parent
bf266ee14b
commit
16c3ed3650
@@ -718,7 +718,7 @@ void DtApp::OpenClose(BaseUI *obj)
|
||||
n_icons = rc->NumChildren();
|
||||
for (i = 0; i < n_jobs; i++)
|
||||
{
|
||||
char number[5];
|
||||
char number[11];
|
||||
sprintf(number, "%d", i + 1);
|
||||
icons[i]->TopString(number);
|
||||
}
|
||||
@@ -907,7 +907,7 @@ void DtApp::ActionCB(BaseUI *obj, char *actionReferenceName)
|
||||
IconObj **children = (IconObj **)parent->Children();
|
||||
for (i = 0; i < parent->NumChildren(); i++)
|
||||
{
|
||||
char number[5];
|
||||
char number[11];
|
||||
sprintf(number, "%d", i + 1);
|
||||
children[i]->TopString(number);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user