]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-cbd-use-callback-size-for-callbacks-20071105
authorThomas Mueller <thomas.mueller@hrz.tu-chemnitz.de>
Mon, 5 Nov 2007 20:43:44 +0000 (20:43 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 5 Nov 2007 20:43:44 +0000 (20:43 +0000)
FIXES 76408

cast correctly

(cherry picked from commit 564be8601c1447b85984eb3773b48ccaa22b4343)

src/viced/callback.c

index 908de21c9e546883ccc7cbece828ae9c05b8a327..3be060bf770cc724c9aea0dd3d1644df369cb5fe 100644 (file)
@@ -1854,7 +1854,7 @@ ReadDump(char *file)
     read(fd, &tfirst, sizeof(tfirst));
     read(fd, &freelisthead, sizeof(freelisthead));
     CB = ((struct CallBack
-          *)(calloc(cbstuff.nblks, sizeof(struct FileEntry)))) - 1;
+          *)(calloc(cbstuff.nblks, sizeof(struct CallBack)))) - 1;
     FE = ((struct FileEntry
           *)(calloc(cbstuff.nblks, sizeof(struct FileEntry)))) - 1;
     CBfree = (struct CallBack *)itocb(freelisthead);