blob: fdc630e62c1d1ac995effa00b3c402965dfda405 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
|