From 844545d1dac5bc414d1b9a98b2ae590e802564e9 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sun, 6 Sep 2015 07:17:52 +0200 Subject: [PATCH] small fix for missing a byte --- radiant/eclass_def.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiant/eclass_def.cpp b/radiant/eclass_def.cpp index 7a2a9327..4fefb5b6 100644 --- a/radiant/eclass_def.cpp +++ b/radiant/eclass_def.cpp @@ -113,7 +113,7 @@ void setSpecialLoad( eclass_t *e, const char* pWhat, char*& p ){ if ( where ) { int len = ( where - pText ); p = new char[len + 1]; - Q_strncpyz( p, pText, len ); + Q_strncpyz( p, pText, len + 1 ); } else{ p = strdup( pText );