diff options
author | sergefp@mysql.com <> | 2005-04-18 07:26:23 +0400 |
---|---|---|
committer | sergefp@mysql.com <> | 2005-04-18 07:26:23 +0400 |
commit | 9fbdd4e03fe36da1a9948d5961b8d8d9f42f80a8 (patch) | |
tree | 5fc1e3795dc327d3d082cc3a217cbe7058e6a34a /sql/protocol.cc | |
parent | 39f412d32950062a8a7cba2d32e1d8556e3b56ee (diff) | |
download | mariadb-git-9fbdd4e03fe36da1a9948d5961b8d8d9f42f80a8.tar.gz |
Fix for BUG#9298: Make int->string conversion sign-aware in Protocol_simple::store_long
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index 773bbe697a3..485605ce8cd 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -810,7 +810,7 @@ bool Protocol_simple::store_long(longlong from) #endif char buff[20]; return net_store_data((char*) buff, - (uint) (int10_to_str((int) from,buff, -10)-buff)); + (uint) (int10_to_str((int)from,buff, (from <0)?-10:10)-buff)); } |