diff options
author | Christopher Arndt | 2023-10-16 23:28:03 +0200 |
---|---|---|
committer | Christopher Arndt | 2023-10-16 23:28:03 +0200 |
commit | 86d73dfc882a3963775792c7d72c18e58c3dc417 (patch) | |
tree | a9a10c4b374dc5956cf701924c66c010077391f3 /fix-asprintf.patch | |
parent | 45f6f9fb626ccac6dd38e9c462815565d49dc0c6 (diff) | |
download | aur-86d73dfc882a3963775792c7d72c18e58c3dc417.tar.gz |
Fix build error with glibc 2.38 and -Werror=format-security
Also fix namcap custom license error and make (lib)cairo dep a soname
depependency.
Diffstat (limited to 'fix-asprintf.patch')
-rw-r--r-- | fix-asprintf.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fix-asprintf.patch b/fix-asprintf.patch new file mode 100644 index 000000000000..7eca29903d8e --- /dev/null +++ b/fix-asprintf.patch @@ -0,0 +1,22 @@ +From 7eb70bf3f7bce0af9e1919d6c875cdb8efca734e Mon Sep 17 00:00:00 2001 +From: brummer10 <brummer-@web.de> +Date: Sun, 20 Aug 2023 09:54:21 +0200 +Subject: [PATCH] Fix issue #12 Fails to build with glibc 2.38 and + -Werror=format-security + +--- + xputty/xfilepicker.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xputty/xfilepicker.c b/xputty/xfilepicker.c +index 7e77fab..e76cac6 100644 +--- a/xputty/xfilepicker.c ++++ b/xputty/xfilepicker.c +@@ -222,6 +222,6 @@ void fp_init(FilePicker *filepicker, const char *path) { + filepicker->selected_file = NULL; + filepicker->path = NULL; + filepicker->filter = NULL; +- asprintf(&filepicker->path, path); ++ asprintf(&filepicker->path, "%s", path); + assert(filepicker->path != NULL); + } |