From 46d86a73a103b061144018c3fe947b57548fc58f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 8 Sep 2011 16:43:15 -0400 Subject: [PATCH] Minor We now support using -1 for NUL-terminated strings. --- util/hb-view.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/util/hb-view.cc b/util/hb-view.cc index ff4a33af6..dd31f9455 100644 --- a/util/hb-view.cc +++ b/util/hb-view.cc @@ -68,8 +68,6 @@ _hb_cr_text_glyphs (cairo_t *cr, if (shape_opts->language) hb_buffer_set_language (hb_buffer, hb_language_from_string (shape_opts->language, -1)); - if (len < 0) - len = strlen (utf8); hb_buffer_add_utf8 (hb_buffer, utf8, len, 0, len); if (!hb_shape_full (hb_font, hb_buffer, shape_opts->features, shape_opts->num_features, NULL, shape_opts->shapers))