Kaydet (Commit) 9a49ff64 authored tarafından Michael Stahl's avatar Michael Stahl

nsscrypto_initializer: MSVC does not support C99 dynamic arrays

Change-Id: I407b2308756b46fbf0920881fc20972b486819b7
üst 8ff09509
......@@ -62,6 +62,8 @@
#include "digestcontext.hxx"
#include "ciphercontext.hxx"
#include <boost/scoped_array.hpp>
#include <nspr.h>
#include <cert.h>
#include <nss.h>
......@@ -282,9 +284,9 @@ bool nsscrypto_initialize( const css::uno::Reference< css::uno::XComponentContex
int errlen = PR_GetErrorTextLength();
if(errlen > 0)
{
char error[errlen + 1];
PR_GetErrorText(error);
xmlsec_trace("%s",error);
boost::scoped_array<char> const error(new char[errlen + 1]);
PR_GetErrorText(error.get());
xmlsec_trace("%s", error.get());
}
bSuccess = false;
}
......@@ -299,9 +301,9 @@ bool nsscrypto_initialize( const css::uno::Reference< css::uno::XComponentContex
int errlen = PR_GetErrorTextLength();
if(errlen > 0)
{
char error[errlen + 1];
PR_GetErrorText(error);
xmlsec_trace("%s",error);
boost::scoped_array<char> const error(new char[errlen + 1]);
PR_GetErrorText(error.get());
xmlsec_trace("%s", error.get());
}
return false ;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment