1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Various post-review fixes

This commit is contained in:
petr@mysql.com
2004-10-26 23:22:12 +04:00
parent 1e46fea310
commit 73aeeaf4ed
16 changed files with 401 additions and 305 deletions

View File

@ -101,14 +101,14 @@ char *net_store_length(char *pkg, uint length)
void store_to_string(Buffer *buf, const char *string, uint *position)
{
char* currpos;
uint currpos;
uint string_len;
string_len= strlen(string);
buf->reserve(*position, 2);
currpos= net_store_length(buf->buffer + *position, string_len);
currpos= (net_store_length(buf->buffer + *position, string_len) - buf->buffer);
buf->append(currpos, string, string_len);
*position= *position + string_len + (currpos - buf->buffer - *position);
*position= *position + string_len + (currpos - *position);
}