mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Why do we have two versions of nsCRT::strncmp, one taking a signed int,
the other an unsigned int? And why does the mac code barf on this? Bustage fix.
This commit is contained in:
parent
81f2bc6e6e
commit
1414a72b84
@ -116,10 +116,10 @@ nsIndexedToHTML::OnStartRequest(nsIRequest* request, nsISupports *aContext) {
|
||||
// Anything but a gopher url needs to end in a /,
|
||||
// otherwise we end up linking to file:///foo/dirfile
|
||||
const char gopherProt[] = "gopher";
|
||||
if (nsCRT::strncmp(scheme.get(),gopherProt,sizeof(gopherProt)-1)) {
|
||||
if (nsCRT::strncmp(scheme.get(),gopherProt,unsigned(sizeof(gopherProt)-1))) {
|
||||
PRUnichar sep;
|
||||
const char fileProt[] = "file";
|
||||
if (!nsCRT::strncmp(scheme.get(),fileProt,sizeof(fileProt)-1)) {
|
||||
if (!nsCRT::strncmp(scheme.get(),fileProt,unsigned(sizeof(fileProt)-1))) {
|
||||
// How do I do this in an XP way???
|
||||
#ifdef XP_MAC
|
||||
sep = ':';
|
||||
|
Loading…
Reference in New Issue
Block a user