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/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.

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