[vlc-commits] codec: atsc a65: fix truncated conversions
Francois Cartegnie
git at videolan.org
Thu Nov 23 14:36:14 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov 23 13:45:04 2017 +0100| [511eb7f9ce5b735ae6651e7614f0c9813df37623] | committer: Francois Cartegnie
codec: atsc a65: fix truncated conversions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=511eb7f9ce5b735ae6651e7614f0c9813df37623
---
modules/codec/atsc_a65.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/atsc_a65.c b/modules/codec/atsc_a65.c
index 6c63cba949..7fdd2959e6 100644
--- a/modules/codec/atsc_a65.c
+++ b/modules/codec/atsc_a65.c
@@ -159,7 +159,7 @@ static bool convert_encoding_set( atsc_a65_handle_t *p_handle,
&p_outbuf, &i_outbuf_remain ) );
psz_dest = psz_realloc;
i_mergmin1 += (i_outbuf_size - i_outbuf_remain);
- psz_dest[i_mergmin1 - 1] = 0;
+ *p_outbuf = '\0';
}
free( psz16 );
}
More information about the vlc-commits
mailing list