nul-terminate temporary buffer in Url:.set()

This commit is contained in:
Ivan Skytte Jørgensen
2016-12-08 15:47:50 +01:00
parent ec516df857
commit 8dd0036b8b

@ -149,6 +149,7 @@ void Url::set( const Url *baseUrl, const char *s, int32_t len, bool addWWW, bool
temp[blen++] = '/';
}
strncpy( temp + blen, s, len );
temp[blen] = '\0';
set( temp, blen + len, addWWW, stripParams, stripPound, stripCommonFile, titledbVersion );
}