projects
/
snark14.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix upstream bug of too small of a sprintf call
[snark14.git]
/
tools
/
Display
/
displayprojection.cpp
diff --git
a/tools/Display/displayprojection.cpp
b/tools/Display/displayprojection.cpp
index 5cfaa60507956fcfd0113679f8cd35f2d793b737..c4773939193d537cb14c6988174b6acb91e87653 100644
(file)
--- a/
tools/Display/displayprojection.cpp
+++ b/
tools/Display/displayprojection.cpp
@@
-162,8
+162,8
@@
displayprojection::displayprojection(QWidget* parent, const char* name, bool mod
lowthresh = new QLineEdit(this, "lowthresh");
lowthresh->setGeometry(QRect(5, 260, 80, 30));
lowthresh = new QLineEdit(this, "lowthresh");
lowthresh->setGeometry(QRect(5, 260, 80, 30));
- char s[6];
- s
printf(s,
"%7.4f", minval);
+ char s[
1
6];
+ s
nprintf(s,sizeof(s)-1,
"%7.4f", minval);
lowthresh->setText(s);
setlowthreshbutton = new QPushButton(this, "setlowthreshbutton");
lowthresh->setText(s);
setlowthreshbutton = new QPushButton(this, "setlowthreshbutton");