summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2014-03-14 09:31:16 +0200
committerunknown <sanja@montyprogram.com>2014-03-14 09:31:16 +0200
commitf9b3cc11bc7a2851731b1cf4055c16069b17ad76 (patch)
treea10f73d292d2df59052f9cc148670585aaed5997 /strings
parente63c03db8d620765b7a1bc769150a04a230b9353 (diff)
downloadmariadb-git-f9b3cc11bc7a2851731b1cf4055c16069b17ad76.tar.gz
MDEV-5819: MySQL Bug #13500371 63704: CONVERSION OF '1.' TO A NUMBER GIVES ERROR 1265 (WARN_DATA_TRUNCATED)
Fix by MySQL ported
Diffstat (limited to 'strings')
-rw-r--r--strings/dtoa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/dtoa.c b/strings/dtoa.c
index f3498a7bb1e..c3ab347f94c 100644
--- a/strings/dtoa.c
+++ b/strings/dtoa.c
@@ -1410,7 +1410,7 @@ static double my_strtod_int(const char *s00, char **se, int *error, char *buf, s
else if (nd < 16)
z= 10*z + c - '0';
nd0= nd;
- if (s < end - 1 && c == '.')
+ if (s < end && c == '.')
{
++s;
if (!nd)