VirtualBox

Changeset 84637 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Jun 2, 2020 1:33:34 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138385
Message:

bugref:9637. using RTPATH_MAX rather than a magic number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp

    r84636 r84637  
    156156static X11CONTEXT x11Context;
    157157
    158 #define BUFFER_SIZE 1024
    159 
    160158struct RANDROUTPUT
    161159{
     
    688686        char* argv[] = {NULL};
    689687        char* env[] = {NULL};
    690         char szDRMClientPath[BUFFER_SIZE];
    691         RTPathExecDir(szDRMClientPath, BUFFER_SIZE);
    692         RTPathAppend(szDRMClientPath, BUFFER_SIZE, "VBoxDRMClient");
     688        char szDRMClientPath[RTPATH_MAX];
     689        RTPathExecDir(szDRMClientPath, RTPATH_MAX);
     690        RTPathAppend(szDRMClientPath, RTPATH_MAX, "VBoxDRMClient");
    693691        int rc = execve(szDRMClientPath, argv, env);
    694692        if (rc == -1)
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