From a35431a194c4924ea447cb9e6278954947aa2fbe Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 17 Aug 2008 18:33:17 +0100 Subject: [PATCH] quartz: Use memcmp instead of strncmp in MPEGSplitter_pre_connect. header isn't a string and therefore using strncmp doesn't make sense. --- dlls/quartz/mpegsplit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/quartz/mpegsplit.c b/dlls/quartz/mpegsplit.c index ee93e2e98c5..8625277c875 100644 --- a/dlls/quartz/mpegsplit.c +++ b/dlls/quartz/mpegsplit.c @@ -471,7 +471,7 @@ static HRESULT MPEGSplitter_pre_connect(IPin *iface, IPin *pConnectPin, ALLOCATO pos += 4; /* Skip ID3 v2 tag, if any */ - if (SUCCEEDED(hr) && !strncmp("ID3", (char*)header, 3)) + if (SUCCEEDED(hr) && !memcmp("ID3", header, 3)) do { UINT length; hr = IAsyncReader_SyncRead(pPin->pReader, pos, 6, header + 4);