From 551760c86d137e80d9f509fd296235fe9a5b21e0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 12 Oct 2005 17:13:56 +0000 Subject: [PATCH] Make gcc 4 happy. --- src/extract/xtr_textsubs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extract/xtr_textsubs.cpp b/src/extract/xtr_textsubs.cpp index 44cf84d4b..391e79ea4 100644 --- a/src/extract/xtr_textsubs.cpp +++ b/src/extract/xtr_textsubs.cpp @@ -197,8 +197,8 @@ xtr_ssa_c::handle_block(KaxBlock &block, end = start + duration / 1000000; DataBuffer &data = block.GetBuffer(0); - memory_c af_s((unsigned char *)s = (char *)safemalloc(data.Size() + 1), 0, - true); + s = (char *)safemalloc(data.Size() + 1); + memory_c af_s((unsigned char *)s, 0, true); memcpy(s, data.Buffer(), data.Size()); s[data.Size()] = 0;