lowthresh = new QLineEdit(this, "lowthresh");
lowthresh->setGeometry(QRect(5, 260, 80, 30));
- char s[6];
- sprintf(s, "%7.4f", minval);
+ char s[16];
+ snprintf(s,sizeof(s)-1,"%7.4f", minval);
lowthresh->setText(s);
setlowthreshbutton = new QPushButton(this, "setlowthreshbutton");