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:
parent
8b086016f4
commit
25c5f6ba1b
1 changed files with 1 additions and 1 deletions
|
@ -1400,8 +1400,8 @@ void QCC_PR_LexNumber (void)
|
||||||
}
|
}
|
||||||
pr_file_p++;
|
pr_file_p++;
|
||||||
}
|
}
|
||||||
pr_immediate._float = atof(pr_token);
|
|
||||||
pr_token[tokenlen++] = 0;
|
pr_token[tokenlen++] = 0;
|
||||||
|
pr_immediate._float = atof(pr_token);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (c == 'i')
|
else if (c == 'i')
|
||||||
|
|
Loading…
Reference in a new issue