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

cleanup for bug#11167.

portability alignment issues.
This commit is contained in:
serg@serg.mylan
2005-06-15 22:49:52 +02:00
parent 362a45fd34
commit a1d55ea052

View File

@ -8112,9 +8112,9 @@ store_record_in_cache(JOIN_CACHE *cache)
end > str && end[-1] == ' ' ; end > str && end[-1] == ' ' ;
end--) ; end--) ;
length=(uint) (end-str); length=(uint) (end-str);
memcpy(pos+sizeof(uint), str, length); memcpy(pos+2, str, length);
*((uint *) pos)= length; int2store(pos, length);
pos+= length+sizeof(uint); pos+= length+2;
} }
else else
{ {
@ -8177,9 +8177,9 @@ read_cached_record(JOIN_TAB *tab)
{ {
if (copy->strip) if (copy->strip)
{ {
memcpy(copy->str, pos+sizeof(uint), length= *((uint *) pos)); memcpy(copy->str, pos+2, length= uint2korr(pos));
memset(copy->str+length, ' ', copy->length-length); memset(copy->str+length, ' ', copy->length-length);
pos+= sizeof(uint)+length; pos+= 2+length;
} }
else else
{ {