VirtualBox

Ignore:
Timestamp:
Nov 11, 2010 11:42:07 AM (14 years ago)
Author:
vboxsync
Message:

*: replaced a bunch of sprintf() by snprintf()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuload.c

    r33540 r33977  
    5454            else
    5555#endif /* DARWIN */
     56#ifdef VBOX
     57                snprintf ( path, sizeof(path), "%s%sspu%s", DLL_PREFIX, name, DLL_SUFFIX );
     58#else
    5659                sprintf ( path, "%s%sspu%s", DLL_PREFIX, name, DLL_SUFFIX );
     60#endif
    5761        }
    5862        else
    5963        {
     64#ifdef VBOX
     65                snprintf ( path, sizeof(path), "%s/%s%sspu%s", dir, DLL_PREFIX, name, DLL_SUFFIX );
     66#else
    6067                sprintf ( path, "%s/%s%sspu%s", dir, DLL_PREFIX, name, DLL_SUFFIX );
     68#endif
    6169        }
    6270        return path;
Note: See TracChangeset for help on using the changeset viewer.

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