small fix for missing a byte

This commit is contained in:
Pan7 2015-09-06 07:17:52 +02:00
parent 252d4fe6b4
commit 844545d1da

View file

@ -113,7 +113,7 @@ void setSpecialLoad( eclass_t *e, const char* pWhat, char*& p ){
if ( where ) { if ( where ) {
int len = ( where - pText ); int len = ( where - pText );
p = new char[len + 1]; p = new char[len + 1];
Q_strncpyz( p, pText, len ); Q_strncpyz( p, pText, len + 1 );
} }
else{ else{
p = strdup( pText ); p = strdup( pText );