13 lines
646 B
Diff
13 lines
646 B
Diff
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);
|