public: remove unneeded copy in Q_atov
This commit is contained in:
parent
fcfc29d7ea
commit
7f3e62e456
1 changed files with 2 additions and 4 deletions
|
@ -253,13 +253,11 @@ float Q_atof( const char *str )
|
||||||
|
|
||||||
void Q_atov( float *vec, const char *str, size_t siz )
|
void Q_atov( float *vec, const char *str, size_t siz )
|
||||||
{
|
{
|
||||||
string buffer;
|
const char *pstr, *pfront;
|
||||||
char *pstr, *pfront;
|
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
Q_strncpy( buffer, str, sizeof( buffer ));
|
|
||||||
memset( vec, 0, sizeof( vec_t ) * siz );
|
memset( vec, 0, sizeof( vec_t ) * siz );
|
||||||
pstr = pfront = buffer;
|
pstr = pfront = str;
|
||||||
|
|
||||||
for( j = 0; j < siz; j++ )
|
for( j = 0; j < siz; j++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue