From d24964ff6ab582879b4e82411b05e30f493852a8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 11 Oct 2015 20:42:52 +0200 Subject: [PATCH] Use sasprintf() --- src/bindings.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bindings.c b/src/bindings.c index eac63a59..c0e01030 100644 --- a/src/bindings.c +++ b/src/bindings.c @@ -691,19 +691,19 @@ static int fill_rmlvo_from_root(struct xkb_rule_names *xkb_names) { remaining -= len; switch (i) { case 0: - asprintf((char **)&(xkb_names->rules), "%.*s", len, walk); + sasprintf((char **)&(xkb_names->rules), "%.*s", len, walk); break; case 1: - asprintf((char **)&(xkb_names->model), "%.*s", len, walk); + sasprintf((char **)&(xkb_names->model), "%.*s", len, walk); break; case 2: - asprintf((char **)&(xkb_names->layout), "%.*s", len, walk); + sasprintf((char **)&(xkb_names->layout), "%.*s", len, walk); break; case 3: - asprintf((char **)&(xkb_names->variant), "%.*s", len, walk); + sasprintf((char **)&(xkb_names->variant), "%.*s", len, walk); break; case 4: - asprintf((char **)&(xkb_names->options), "%.*s", len, walk); + sasprintf((char **)&(xkb_names->options), "%.*s", len, walk); break; } DLOG("component %d of _XKB_RULES_NAMES is \"%.*s\"\n", i, len, walk);