local synctex change: fix the printf specifier for a parameter (of type size_t), to be %zd instead of %d

add the change as local patch 05-fix-error-formats.diff

svn path=/trunk/KDE/kdegraphics/okular/; revision=1003109
remotes/origin/KDE/4.4
Pino Toscano 17 years ago
parent fe8ab0045e
commit a36b9042bd
  1. 13
      generators/poppler/synctex/patches/05-fix-error-formats.diff
  2. 1
      generators/poppler/synctex/patches/series
  3. 2
      generators/poppler/synctex/synctex_parser.c

@ -0,0 +1,13 @@
Index: synctex/synctex_parser.c
===================================================================
--- synctex.orig/synctex_parser.c 2009-07-27 19:21:55.000000000 +0200
+++ synctex/synctex_parser.c 2009-07-27 19:22:47.000000000 +0200
@@ -1418,7 +1418,7 @@
len = SYNCTEX_END - SYNCTEX_CUR;
if(current_size>UINT_MAX-len-1) {
/* We have reached the limit. */
- _synctex_error("! limit reached (missing %i).",current_size-(UINT_MAX-len-1));
+ _synctex_error("! limit reached (missing %zd).",current_size-(UINT_MAX-len-1));
return SYNCTEX_STATUS_ERROR;
}
new_size = current_size+len;

@ -2,3 +2,4 @@
02-fix-_synctex_error.diff
03-fix-_synctex_scan_named.diff
04-gcc-specify-printf-format.diff
05-fix-error-formats.diff

@ -1418,7 +1418,7 @@ next_character:
len = SYNCTEX_END - SYNCTEX_CUR;
if(current_size>UINT_MAX-len-1) {
/* We have reached the limit. */
_synctex_error("! limit reached (missing %i).",current_size-(UINT_MAX-len-1));
_synctex_error("! limit reached (missing %zd).",current_size-(UINT_MAX-len-1));
return SYNCTEX_STATUS_ERROR;
}
new_size = current_size+len;

Loading…
Cancel
Save