From: Michael Stapelberg Date: Sun, 11 Oct 2015 18:42:52 +0000 (+0200) Subject: Use sasprintf() X-Git-Tag: 4.14.1~100 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94bdf607bb54b57729a4a4453c94fb11054b6330;p=i3%2Fi3 Use sasprintf() --- diff --git a/src/bindings.c b/src/bindings.c index b96c401c..b9c7d914 100644 --- a/src/bindings.c +++ b/src/bindings.c @@ -673,19 +673,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);