diff options
Diffstat (limited to 'hw/xfree86/common/xf86ShowOpts.c')
-rw-r--r-- | hw/xfree86/common/xf86ShowOpts.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/hw/xfree86/common/xf86ShowOpts.c b/hw/xfree86/common/xf86ShowOpts.c index a8059168d..a919013bb 100644 --- a/hw/xfree86/common/xf86ShowOpts.c +++ b/hw/xfree86/common/xf86ShowOpts.c @@ -107,16 +107,8 @@ void DoShowOptions (void) { i,xf86DriverList[i]->driverName,vers->vendor ); for (p = pOption; p->name != NULL; p++) { - const char *opttype = optionTypeToSting(p->type); - /* XXX: Why overallocate by 2 bytes? - * Otherwise, this would be strdup() - */ - char *optname = malloc(strlen(p->name) + 2 + 1); - if (!optname) { - continue; - } - sprintf(optname, "%s", p->name); - ErrorF ("\t%s:%s\n", optname,opttype); + ErrorF ("\t%s:%s\n", p->name, + optionTypeToSting(p->type)); } ErrorF ("}\n"); } |