1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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

@ -27,7 +27,7 @@
SYNOPSYS
append()
position start position in the buffer
position start position in the buffer
string string to be put in the buffer
len_arg the length of the string. This way we can avoid some
strlens.
@ -43,12 +43,12 @@
1 - The buffer came to 16Mb barrier
*/
int Buffer::append(char *position, const char *string, uint len_arg)
int Buffer::append(uint position, const char *string, uint len_arg)
{
if (reserve(position - buffer, len_arg))
if (reserve(position, len_arg))
return 1;
strnmov(position, string, len_arg);
strnmov(buffer + position, string, len_arg);
return 0;
}
@ -89,3 +89,4 @@ int Buffer::reserve(uint position, uint len_arg)
}
return 0;
}