* rectifié la taille de l'allocation

This commit is contained in:
glenux 2004-02-19 19:25:57 +00:00
parent d6ecdfb25e
commit e09c683a08

View file

@ -42,7 +42,7 @@ msgSpace * msgSpaceCreate(
} }
//on redimentionne l'element //on redimentionne l'element
if (ftruncate(mSFd, sizeof(PAGESIZE)) == -1){ if (ftruncate(mSFd, sizeof(* mSAddr)) == -1){
fprintf( stderr, "msgSpace resizing failed: %s\n", fprintf( stderr, "msgSpace resizing failed: %s\n",
strerror( errno ) ); strerror( errno ) );
return NULL; return NULL;