[vlc-commits] Fix sizeof mismatch (cid #1049620)
Rémi Duraffort
git at videolan.org
Fri Jul 19 21:12:51 CEST 2013
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 19 21:00:45 2013 +0200| [ec9b71764815f710e26feacdad6210adbf0de399] | committer: Rémi Duraffort
Fix sizeof mismatch (cid #1049620)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec9b71764815f710e26feacdad6210adbf0de399
---
src/input/input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/input.c b/src/input/input.c
index ebe6350..1ab327f 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2846,7 +2846,7 @@ static void AppendAttachment( int *pi_attachment, input_attachment_t ***ppp_atta
int i;
attachment = xrealloc( attachment,
- sizeof(input_attachment_t**) * ( i_attachment + i_new ) );
+ sizeof(*attachment) * ( i_attachment + i_new ) );
for( i = 0; i < i_new; i++ )
attachment[i_attachment++] = pp_new[i];
free( pp_new );
More information about the vlc-commits
mailing list