Fix array allocation
This commit is contained in:
parent
0d38d59420
commit
449f8c6bfb
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue