Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/dash/mkinit.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 814 by niro, Sat Sep 1 22:45:15 2007 UTC revision 815 by niro, Fri Apr 24 18:32:46 2009 UTC
# Line 427  writetext(struct text *text, FILE *fp) Line 427  writetext(struct text *text, FILE *fp)
427   struct block *bp;   struct block *bp;
428    
429   if (text->start != NULL) {   if (text->start != NULL) {
430   for (bp = text->start ; bp != text->last ; bp = bp->next)   for (bp = text->start ; bp != text->last ; bp = bp->next) {
431   fwrite(bp->text, sizeof (char), BLOCKSIZE, fp);   if ((fwrite(bp->text, sizeof (char), BLOCKSIZE, fp)) != BLOCKSIZE)
432   fwrite(bp->text, sizeof (char), BLOCKSIZE - text->nleft, fp);   error("Can't write data\n");
433     }
434     if ((fwrite(bp->text, sizeof (char), BLOCKSIZE - text->nleft, fp)) != (BLOCKSIZE - text->nleft))
435     error("Can't write data\n");
436   }   }
437  }  }
438    

Legend:
Removed from v.814  
changed lines
  Added in v.815