зеркало из https://github.com/mozilla/pjs.git
Fix for blocker 71146, tweak by cls, r=syd, sr=pchen (as sheriff). Change
strncmp to PL_strncmp to catch null "string".
This commit is contained in:
Родитель
582f0d0e0d
Коммит
62b2ae80f3
|
@ -141,7 +141,7 @@ NS_IMETHODIMP nsSound::OnStreamComplete(nsIStreamLoader *aLoader,
|
|||
int format, channels = 1, block_align, bits_per_sample;
|
||||
|
||||
|
||||
if (strncmp(string, "RIFF", 4)) {
|
||||
if (PL_strncmp(string, "RIFF", 4)) {
|
||||
printf("We only support WAV files currently.\n");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче