Bug 226597 nsObjectFrame.cpp Warning: String literal converted to char* in initialization.

r=roc sr=roc


git-svn-id: svn://10.0.0.236/trunk@150581 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2003-12-21 04:04:09 +00:00
parent 6df41f3f4c
commit 332e929af5
2 changed files with 18 additions and 4 deletions

View File

@@ -2632,10 +2632,17 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetDocumentBase(const char* *result)
static nsHashtable *gCharsetMap = nsnull;
typedef struct {
char *mozName;
char *javaName;
char mozName[16];
char javaName[12];
} moz2javaCharset;
/* XXX If you add any strings longer than
* {"x-mac-cyrillic", "MacCyrillic"},
* {"x-mac-ukrainian", "MacUkraine"},
* to the following array then you MUST update the
* sizes of the arrays in the moz2javaCharset struct
*/
static const moz2javaCharset charsets[] =
{
{"windows-1252", "Cp1252"},