mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
xfree86: int10: use standard asprintf() instead of our own implementation
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -355,10 +355,9 @@ VBESetModeNames(DisplayModePtr pMode)
|
||||
pMode->name = strdup("BADMODE");
|
||||
}
|
||||
else {
|
||||
char *tmp;
|
||||
XNFasprintf(&tmp, "%dx%d",
|
||||
pMode->HDisplay, pMode->VDisplay);
|
||||
pMode->name = tmp;
|
||||
char *tmp = NULL;
|
||||
if (asprintf(&tmp, "%dx%d", pMode->HDisplay, pMode->VDisplay) != -1)
|
||||
pMode->name = tmp;
|
||||
}
|
||||
}
|
||||
pMode = pMode->next;
|
||||
|
||||
Reference in New Issue
Block a user