X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Fsymtab.c;fp=restore%2Fsymtab.c;h=c3c941e21f685e9709b20485fe4786286c88bdd8;hp=7e5605730db48ce73ca6472178b1bcd6f5b668cd;hb=67febcc5e8d252f6f13784dfc2b540bacd4dda77;hpb=f0ab1ab5331f9ed387ade32d96b24285b0cd5282 diff --git a/restore/symtab.c b/restore/symtab.c index 7e56057..c3c941e 100644 --- a/restore/symtab.c +++ b/restore/symtab.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: symtab.c,v 1.27 2005/07/07 09:16:08 stelian Exp $"; + "$Id: symtab.c,v 1.28 2010/06/11 11:19:17 stelian Exp $"; #endif /* not lint */ /* @@ -568,8 +568,8 @@ dumpsymtable(char *filename, long checkpt) for (i = WINO; i <= maxino; i++) { for (ep = lookupino(i); ep != NULL; ep = ep->e_links) { ep->e_index = mynum++; - (void) fwrite(ep->e_name, sizeof(char), - (int)allocsize(ep->e_namlen), fd); + (void) fwrite(ep->e_name, (int)allocsize(ep->e_namlen), + sizeof(char), fd); } } /* @@ -587,7 +587,7 @@ dumpsymtable(char *filename, long checkpt) if (temphash[j]) temphash[j] = (struct entry *)ep->e_entries[j]->e_index; } - fwrite(temphash, dirhash_size, sizeof(struct entry *), fd); + fwrite(temphash, sizeof(struct entry *), dirhash_size, fd); } } }