summaryrefslogtreecommitdiff
path: root/dix/dixfonts.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-11-27 20:09:04 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-12-07 11:10:35 -0800
commit03e8bfa1d122f7dea905d48c93cfd54afd991dfd (patch)
tree7b52cac0f43bb7f79ab9ec62054c74a18d8a28f2 /dix/dixfonts.c
parentc95c1d338fdb62dbe3dba934b97324fa778b7fce (diff)
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>
Diffstat (limited to 'dix/dixfonts.c')
-rw-r--r--dix/dixfonts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dix/dixfonts.c b/dix/dixfonts.c
index ccb462794..bd1ad3075 100644
--- a/dix/dixfonts.c
+++ b/dix/dixfonts.c
@@ -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);
}