]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE146-cbd-use-callback-size-for-callbacks-20071105
authorThomas Mueller <thomas.mueller@hrz.tu-chemnitz.de>
Thu, 13 Dec 2007 20:51:53 +0000 (20:51 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 13 Dec 2007 20:51:53 +0000 (20:51 +0000)
FIXES 76408

cast correctly

(cherry picked from commit 564be8601c1447b85984eb3773b48ccaa22b4343)

src/viced/callback.c

index 3c7a62d31fb7cffe093864190eb3d632fe30ec4e..0afd567963fed03f634cd172df3e0e306b66668d 100644 (file)
@@ -1860,7 +1860,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);