Fix array allocation

This commit is contained in:
Massimiliano Corsini 2005-12-19 14:56:29 +00:00
parent 0d38d59420
commit 449f8c6bfb
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void XMLTree::initializeMain()
mn->headers.push_back(pair<const char*,const char*>("protegekb","")); mn->headers.push_back(pair<const char*,const char*>("protegekb",""));
char* s1 = "http://www.w3.org/2001/XMLSchema-instance"; char* s1 = "http://www.w3.org/2001/XMLSchema-instance";
char* s2 = new(char[25]); char* s2 = new(char[100]);
sprintf(s2,"\"%s\"",s1); sprintf(s2,"\"%s\"",s1);
mn->addHeaders(" xmlns:xsi=", s2); mn->addHeaders(" xmlns:xsi=", s2);