diff --git a/src/hb-ot-name.cc b/src/hb-ot-name.cc index 56f89335b..7962d8b89 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. */