[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed Jan 10 15:48:16 UTC 2018


 util/options.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 746a37d5bdd2e965aa316e95ba5a7bad809d76a7
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Jan 10 16:47:47 2018 +0100

    [util] Replace setlinebuf

diff --git a/util/options.cc b/util/options.cc
index 243b49b1..f4ac445f 100644
--- a/util/options.cc
+++ b/util/options.cc
@@ -780,7 +780,7 @@ text_options_t::get_line (unsigned int *len)
     gs = g_string_new (nullptr);
   }
 
-  setlinebuf (fp);
+  setvbuf(fp, NULL, _IOLBF, BUFSIZ); //setlinebuf (fp);
 
   g_string_set_size (gs, 0);
   char buf[BUFSIZ];
@@ -819,7 +819,7 @@ output_options_t::get_file_handle (void)
     fail (false, "Cannot open output file `%s': %s",
 	  g_filename_display_name (output_file), strerror (errno));
 
-  setlinebuf (fp);
+  setvbuf(fp, NULL, _IOLBF, BUFSIZ); //setlinebuf (fp);
 
   return fp;
 }


More information about the HarfBuzz mailing list