]> git.sur5r.net Git - i3/i3/blobdiff - i3-input/main.c
introduce sasprintf() in libi3, use it everywhere
[i3/i3] / i3-input / main.c
index fbc776e2f6c1a1ca6b863cc099677ed847da071b..0d9d964e441bbab035bdfb5d43767a4ad0a68e35 100644 (file)
@@ -306,7 +306,7 @@ int main(int argc, char *argv[]) {
                 /* This option is deprecated, but will still work in i3 v4.1, 4.2 and 4.3 */
                 fprintf(stderr, "i3-input: WARNING: the -p option is DEPRECATED in favor of the -F (format) option\n");
                 FREE(format);
-                asprintf(&format, "%s%%s", optarg);
+                sasprintf(&format, "%s%%s", optarg);
                 break;
             case 'l':
                 limit = atoi(optarg);