diff options
author | dgp <dgp@users.sourceforge.net> | 2015-02-06 16:35:48 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2015-02-06 16:35:48 (GMT) |
commit | 7fa5cdb9c367a0587e135892aa12345045fb2b92 (patch) | |
tree | 2e399b6ac70b26c14f70092ed8efc1f4fa0e82da /generic/tkEntry.c | |
parent | cd43dc5d400d4646a76dfdb37a555d7c8d6bda6b (diff) | |
parent | e9043031de3669be8a342498ecbc78cfdc67f054 (diff) | |
download | tk-7fa5cdb9c367a0587e135892aa12345045fb2b92.zip tk-7fa5cdb9c367a0587e135892aa12345045fb2b92.tar.gz tk-7fa5cdb9c367a0587e135892aa12345045fb2b92.tar.bz2 |
merge 8.5
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r-- | generic/tkEntry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c index 816b7fa..6683cdc 100644 --- a/generic/tkEntry.c +++ b/generic/tkEntry.c @@ -1330,7 +1330,7 @@ ConfigureEntry( double dvalue; - if (sscanf(entryPtr->string, "%lf", &dvalue) == 0) { + if (sscanf(entryPtr->string, "%lf", &dvalue) <= 0) { /* Scan failure */ dvalue = sbPtr->fromValue; } else { @@ -4231,7 +4231,7 @@ SpinboxInvoke( } else if (!DOUBLES_EQ(sbPtr->fromValue, sbPtr->toValue)) { double dvalue; - if (sscanf(entryPtr->string, "%lf", &dvalue) == 0) { + if (sscanf(entryPtr->string, "%lf", &dvalue) <= 0) { /* * If the string doesn't scan as a double value, just * use the -from value |