String buffers have been increased to be sufficient to accommodate result of sprintf() for any possible printed integer values.
// Si nbpack = 0 ou 1, num = 1 pas de suffixe, sinon suffixe "_num" tel quel
// MODIF du 3-NOV-1995 -> pour eviter toute confusion, num = 1 donne aussi _1
Standard_Integer nbch = 0;
- char format[10],suffixe[30]; format[1] = ' ';
+ char format[30],suffixe[30]; format[1] = ' ';
if (npac >= num) {
Standard_Integer nbpa = 1;
while (nbpa <= npac) { nbpa *= 10; nbch ++; }
Standard_Boolean fnes = (themodew >= 10);
if(!isGood)
return isGood;
- char ligne[81];
+ char ligne[256];
#ifdef PATIENCELOG
Standard_Integer lignespatience = 1000;
#endif
blancs[MaxcarsP] = '\0';
for (i = 1; i <= nbd && isGood; i ++) {
for (Standard_Integer j = thepnum.Value(i); j < thepnum.Value(i+1); j ++) {
- char finlin[20];
+ char finlin[32];
sprintf(finlin," %7.7dP%7.7d",2*i-1,j);
line = thepars->Value(j);
// line->LeftJustify(MaxcarsP,' '); remplace par plus economique ! :