VirtualBox

Changeset 33977 in vbox for trunk/src/VBox/GuestHost/OpenGL


Ignore:
Timestamp:
Nov 11, 2010 11:42:07 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67639
Message:

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

Location:
trunk/src/VBox/GuestHost/OpenGL
Files:
2 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;
  • trunk/src/VBox/GuestHost/OpenGL/util/process.c

    r30598 r33977  
    148148        /* pipe output of ps to temp file */
    149149#ifndef SunOS
     150# ifdef VBOX
     151        snprintf(command, sizeof(command), "ps > %s", tmp);
     152# else
    150153        sprintf(command, "ps > %s", tmp);
    151 #else
     154# endif
     155#else
     156# ifdef VBOX
     157        snprintf(command, sizeof(command), "ps -e -o 'pid tty time comm'> %s", tmp);
     158# else
    152159        sprintf(command, "ps -e -o 'pid tty time comm'> %s", tmp);
     160# endif
    153161#endif
    154162        system(command);
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