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/HostServices/SharedOpenGL/render/renderspu.c

    r28279 r33977  
    10201020        return render_spu.ws.glGetString(GL_VERSION);
    10211021    else if (pname == GL_RENDERER) {
     1022#ifdef VBOX
     1023        snprintf(tempStr, sizeof(tempStr), "Chromium (%s)", (char *) render_spu.ws.glGetString(GL_RENDERER));
     1024#else
    10221025        sprintf(tempStr, "Chromium (%s)", (char *) render_spu.ws.glGetString(GL_RENDERER));
     1026#endif
    10231027        return (const GLubyte *) tempStr;
    10241028    }
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