Changeset aec5da4 in rtems


Ignore:
Timestamp:
Mar 25, 1999, 9:42:52 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
23291e99
Parents:
5e2fe06
Message:

Patch from Rosimildo DaSilva? <rdasilva@…>:

Problem: Sometimes the output file "FOO.BT" is smaller that the second

image.

Solution: Opening files, input/output, in "binary mode".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/tools/bin2boot.c

    r5e2fe06 raec5da4  
    7070 
    7171  ofile = argv[optind];
    72   ofp   = fopen(ofile, "w");
     72  ofp   = fopen(ofile, "wb");
    7373  if(ofp == NULL)
    7474    {
     
    106106  optind++;
    107107  ifile = argv[optind];
    108   ifp   = fopen(ifile,"r");
     108  ifp   = fopen(ifile,"rb");
    109109  if(ifp == NULL)
    110110    {
     
    213213  optind++;
    214214  ifile = argv[optind];
    215   ifp   = fopen(ifile,"r");
     215  ifp   = fopen(ifile,"rb");
    216216  if(ifp == NULL)
    217217    {
Note: See TracChangeset for help on using the changeset viewer.