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
Родитель 582f0d0e0d
Коммит 62b2ae80f3
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;
}