VirtualBox

Changeset 3407 in vbox


Ignore:
Timestamp:
Jul 4, 2007 8:00:45 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22611
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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, " ");
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette