introduce sasprintf() in libi3, use it everywhere

This commit is contained in:
Michael Stapelberg
2011-10-23 13:16:56 +01:00
parent 14abafb3c8
commit 9d15a00ba8
18 changed files with 68 additions and 66 deletions

View 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);