1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix for BUG#9298: Make int->string conversion sign-aware in Protocol_simple::store_long

This commit is contained in:
sergefp@mysql.com
2005-04-18 07:26:23 +04:00
parent 39f412d329
commit 9fbdd4e03f
3 changed files with 17 additions and 1 deletions

View File

@ -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));
}