From: Behdad Esfahbod Date: Wed, 24 Oct 2018 05:16:32 +0000 (-0700) Subject: [name] Fix nul-termination bug X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=888a65615c7b11222749ae85c124aaa9a36fe863;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [name] Fix nul-termination bug --- diff --git a/src/hb-ot-name.cc b/src/hb-ot-name.cc index 56f8933..7962d8b 100644 --- a/src/hb-ot-name.cc +++ b/src/hb-ot-name.cc @@ -83,7 +83,7 @@ hb_ot_name_convert_utf (const hb_bytes_t *bytes, }; *text_size = dst - text; - *text = 0; /* NUL-terminate. */ + *dst = 0; /* NUL-terminate. */ } /* Accumulate length of rest. */