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:
pchen%netscape.com 2001-03-07 21:10:28 +00:00
Родитель 1d53981880
Коммит aee9de5446
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}