[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Nov 10 11:37:23 PST 2015


 util/options.hh |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit e97835ad43f5c68e8cb29599246cae0f4461d663
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Nov 10 11:37:01 2015 -0800

    [util] Fix crash when --output-file is specified but not --output-format

diff --git a/util/options.hh b/util/options.hh
index 9dc4433..1ef4131 100644
--- a/util/options.hh
+++ b/util/options.hh
@@ -401,7 +401,10 @@ struct output_options_t : option_group_t
     if (output_file && !output_format) {
       output_format = strrchr (output_file, '.');
       if (output_format)
+      {
 	  output_format++; /* skip the dot */
+	  output_format = strdup (output_format);
+      }
     }
 
     if (output_file && 0 == strcmp (output_file, "-"))


More information about the HarfBuzz mailing list