null-terminate before using atof, not afterwards...

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3368 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Blub 2009-09-02 17:04:55 +00:00
parent 8b086016f4
commit 25c5f6ba1b

View file

@ -1400,8 +1400,8 @@ void QCC_PR_LexNumber (void)
}
pr_file_p++;
}
pr_immediate._float = atof(pr_token);
pr_token[tokenlen++] = 0;
pr_immediate._float = atof(pr_token);
return;
}
else if (c == 'i')