pmaports/kde/okular/musl-fixes.patch

14 lines
646 B
Diff
Raw Normal View History

2018-10-08 06:50:31 +00:00
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);