mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
Convert existing Xprintf style calls to asprintf style
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
This commit is contained in:
parent
c95c1d338f
commit
03e8bfa1d1
12 changed files with 88 additions and 59 deletions
|
|
@ -1817,7 +1817,9 @@ SetDefaultFontPath(char *path)
|
|||
start = end;
|
||||
}
|
||||
if (!start) {
|
||||
temp_path = Xprintf("%s%sbuilt-ins", path, *path ? "," : "");
|
||||
if (asprintf(&temp_path, "%s%sbuilt-ins", path, *path ? "," : "")
|
||||
== -1)
|
||||
temp_path = NULL;
|
||||
} else {
|
||||
temp_path = strdup(path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue