diff options
Diffstat (limited to 'libhb/decutf8sub.c')
-rw-r--r-- | libhb/decutf8sub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/decutf8sub.c b/libhb/decutf8sub.c index cf86678d7..812569279 100644 --- a/libhb/decutf8sub.c +++ b/libhb/decutf8sub.c @@ -45,7 +45,7 @@ static int decutf8Work( hb_work_object_t * w, hb_buffer_t ** buf_in, if ( out->size > 0 && out->data[out->size - 1] != '\0' ) { // NOTE: out->size remains unchanged hb_buffer_realloc( out, out->size + 1 ); - out->data[out->size] = '\0'; + out->data[out->size++] = '\0'; } *buf_in = NULL; |