aboutsummaryrefslogtreecommitdiffstats
path: root/testing/okular/musl-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/okular/musl-fixes.patch')
-rw-r--r--testing/okular/musl-fixes.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/okular/musl-fixes.patch b/testing/okular/musl-fixes.patch
new file mode 100644
index 0000000000..fdc630e62c
--- /dev/null
+++ b/testing/okular/musl-fixes.patch
@@ -0,0 +1,13 @@
+diff --git a/core/synctex/synctex_parser.c b/core/synctex/synctex_parser.c
+index 4c1923b9a..de6c92d24 100644
+--- a/core/synctex/synctex_parser.c
++++ b/core/synctex/synctex_parser.c
+@@ -8199,7 +8199,7 @@ static int _synctex_updater_print_gz(synctex_updater_p updater, const char * for
+ char * buffer;
+ va_list va;
+ va_start(va, format);
+- if (vasprintf(&buffer, format, va) < 0) {
++ if (vsprintf(&buffer, format, va) < 0) {
+ _synctex_error("Out of memory...");
+ } else if ((result = (int)strlen(buffer))) {
+ result = gzwrite(updater->file.as_gzFile, buffer, (unsigned)result);