patch-libdjvu_miniexp_cpp 484 B

12345678910111213
  1. $OpenBSD: patch-libdjvu_miniexp_cpp,v 1.2 2015/05/12 16:10:27 shadchin Exp $
  2. --- libdjvu/miniexp.cpp.orig Wed Feb 11 09:35:37 2015
  3. +++ libdjvu/miniexp.cpp Sat Mar 28 21:24:09 2015
  4. @@ -1241,7 +1241,7 @@ static int stdio_fputs(miniexp_io_t *io, const char *s
  5. static int true_stdio_fgetc(miniexp_io_t *io) {
  6. FILE *f = (io->data[0]) ? (FILE*)(io->data[0]) : stdin;
  7. - return ::getc(f);
  8. + return ::fgetc(f);
  9. }
  10. static int compat_getc() {
  11. return true_stdio_fgetc(&miniexp_io);