diff --git a/src/nzg_spaces.c b/src/nzg_spaces.c index 728ac38..065a3db 100644 --- a/src/nzg_spaces.c +++ b/src/nzg_spaces.c @@ -99,7 +99,7 @@ msgSpace * msgSpaceCreate( } /* allocation de la bonne zone mémoire pour le poolData */ - if (ftruncate(mSFd, poolNb*sizeof(* msgPoolData)) == -1){ + if (ftruncate(mSPoolDataFd, poolNb*sizeof(msgPoolData)) == -1){ fprintf( stderr, "msgSpace resizing failed: %s\n", strerror( errno ) ); return NULL;