]> git.sur5r.net Git - i3/i3/commitdiff
Use sasprintf()
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 11 Oct 2015 18:42:52 +0000 (20:42 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 11 Oct 2015 18:42:52 +0000 (20:42 +0200)
src/bindings.c

index eac63a59e38039b3865add28722461110c23b21c..c0e010301c3cb373b40478b2ebe827f8c701f101 100644 (file)
@@ -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);