Browse Source

snprintf -> util_snprintf

tags/mesa_20090313
Alan Hourihane 17 years ago
parent
commit
be8a42b4fc
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      src/mesa/state_tracker/st_cb_strings.c

+ 6
- 6
src/mesa/state_tracker/st_cb_strings.c View File

const char *vendor = screen->get_vendor( screen ); const char *vendor = screen->get_vendor( screen );
const char *tungsten = "Tungsten Graphics, Inc."; const char *tungsten = "Tungsten Graphics, Inc.";


/* Tungsten developed the state_tracker module (and much of
* Mesa), but the driver itself may come from elsewhere. The
* additional string allows "and XyzCorp" to reflect this.
/* Tungsten Graphics, Inc. developed the state_tracker module
* (and much of Mesa), but the driver itself may come from elsewhere.
* The additional string allows "and XyzCorp" to reflect this.
*/ */
if (vendor && strcmp(vendor, tungsten) != 0) if (vendor && strcmp(vendor, tungsten) != 0)
snprintf(st->vendor, sizeof(st->vendor),
util_snprintf(st->vendor, sizeof(st->vendor),
"%s and %s", tungsten, vendor); "%s and %s", tungsten, vendor);
else else
snprintf(st->vendor, sizeof(st->vendor), "%s", tungsten);
util_snprintf(st->vendor, sizeof(st->vendor), "%s", tungsten);


return (GLubyte *) st->vendor; return (GLubyte *) st->vendor;
} }


case GL_RENDERER: case GL_RENDERER:
snprintf(st->renderer, sizeof(st->renderer), "Gallium %s, %s on %s",
util_snprintf(st->renderer, sizeof(st->renderer), "Gallium %s, %s on %s",
ST_VERSION_STRING, ST_VERSION_STRING,
screen->get_name( screen ), screen->get_name( screen ),
screen->winsys->get_name( screen->winsys )); screen->winsys->get_name( screen->winsys ));

Loading…
Cancel
Save