git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/vcfs@678
959494ce-11ee-0310-bf91-
de5d638817bd
return;
if(i < 4) {
tmp = st->cache[he * 4 + i];
return;
if(i < 4) {
tmp = st->cache[he * 4 + i];
- memmove(&st->cache[he * 4 + 1], &st->cache[he * 4], i);
+ memmove(&st->cache[he * 4 + 1], &st->cache[he * 4], i * sizeof(struct storecache));
st->cache[he * 4] = tmp;
return;
}
if(st->cache[he * 4 + 3].data != NULL)
free(st->cache[he * 4 + 3].data);
st->cache[he * 4] = tmp;
return;
}
if(st->cache[he * 4 + 3].data != NULL)
free(st->cache[he * 4 + 3].data);
- memmove(&st->cache[he * 4 + 1], &st->cache[he * 4], 3);
+ memmove(&st->cache[he * 4 + 1], &st->cache[he * 4], 3 * sizeof(struct storecache));
st->cache[he * 4].a = *a;
if(len > 0)
st->cache[he * 4].data = memcpy(malloc(len), data, len);
st->cache[he * 4].a = *a;
if(len > 0)
st->cache[he * 4].data = memcpy(malloc(len), data, len);