VirtualBox

Changeset 3407

Show
Ignore:
Timestamp:
07/04/07 10:00:45 (2 years ago)
Author:
vboxsync
Message:

build fix if the BIOS code contains /* or */ :)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/bldprogs/bin2c.c

    r2981 r3407  
    176176            fprintf(pFileOut, " /* 0x%08lx: ", (long)off); 
    177177            for (i = 0; i < cbRead; i++) 
    178                 fprintf(pFileOut, "%c", isprint(abLine[i]) ? abLine[i] : '.'); 
     178                /* be careful with '/' prefixed/followed by a '*'! */ 
     179                fprintf(pFileOut, "%c",  
     180                        isprint(abLine[i]) && abLine[i] != '/' ? abLine[i] : '.'); 
    179181            for (; i < sizeof(abLine); i++) 
    180182                fprintf(pFileOut, " "); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy