From 3b1df8bb32cabbe9019136249dbc108e51c2d1ff Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 9 Apr 2009 07:01:04 +0000 Subject: [PATCH] fix same bug in DSTM system --- Robust/src/Runtime/DSTM/interface/objstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Robust/src/Runtime/DSTM/interface/objstr.c b/Robust/src/Runtime/DSTM/interface/objstr.c index 5b982268..be04a8d6 100644 --- a/Robust/src/Runtime/DSTM/interface/objstr.c +++ b/Robust/src/Runtime/DSTM/interface/objstr.c @@ -49,7 +49,7 @@ void *objstrAlloc(objstr_t **osptr, unsigned int size) { unsigned int newsize=size>DEFAULT_OBJ_STORE_SIZE?size:DEFAULT_OBJ_STORE_SIZE; objstr_t *os=(objstr_t *)calloc(1,(sizeof(objstr_t) + newsize)); void *ptr=&os[1]; - os->next=store; + os->next=*osptr; (*osptr)=os; os->size=newsize; os->top=((char *)ptr)+size; -- 2.34.1