another shot at fixing writes

svn path=/trunk/; revision=17253
This commit is contained in:
Steven Edwards 2005-08-10 03:59:01 +00:00
parent 49844139cc
commit b5fe5d7dcb

View file

@ -186,7 +186,7 @@ void fs_write(loff_t pos,int size,void *data)
} }
new = alloc(sizeof(CHANGE)); new = alloc(sizeof(CHANGE));
new->pos = pos; new->pos = pos;
memcpy(new->data = alloc(new->size = size),data,size); memcpy(new->data = alloc(new->size = readsize_aligned),data,readsize_aligned);
new->next = NULL; new->next = NULL;
if (last) last->next = new; if (last) last->next = new;
else changes = new; else changes = new;