From e09c683a08b66b995c34bb1afc4aa9ebd03a06f8 Mon Sep 17 00:00:00 2001 From: glenux Date: Thu, 19 Feb 2004 19:25:57 +0000 Subject: [PATCH] =?UTF-8?q?*=20rectifi=C3=A9=20la=20taille=20de=20l'alloca?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/nzg_spaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;