diff --git a/src/nzg_spaces.c b/src/nzg_spaces.c index 3d4637e..025e44c 100644 --- a/src/nzg_spaces.c +++ b/src/nzg_spaces.c @@ -42,7 +42,7 @@ msgSpace * msgSpaceCreate( } //on redimentionne l'element - if (ftruncate(mSFd, sizeof(PAGESIZE)) == -1){ + if (ftruncate(mSFd, sizeof(* mSAddr)) == -1){ fprintf( stderr, "msgSpace resizing failed: %s\n", strerror( errno ) ); return NULL;