Commit 4dcfa90e authored by Damien Fouilleul's avatar Damien Fouilleul

mozilla: possible string underflow problem

parent c8679593
...@@ -322,7 +322,7 @@ relativeurl: ...@@ -322,7 +322,7 @@ relativeurl:
if( psz_baseURL ) if( psz_baseURL )
{ {
size_t baseLen = strlen(psz_baseURL); size_t baseLen = strlen(psz_baseURL);
char *href = new char[baseLen+strlen(url)]; char *href = new char[baseLen+strlen(url)+1];
if( href ) if( href )
{ {
/* prepend base URL */ /* prepend base URL */
......
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