mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Replace all usages of atoi() with help.Int()
This will prevent any undefined behavior that might occur as a result of having invalid input passed into atoi().
This commit is contained in:
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
ARG_INNER({
|
||||
savefileplaytest = true;
|
||||
int v = std::atoi(argv[i+1]);
|
||||
int v = help.Int(argv[i+1]);
|
||||
if (ARG("-playx")) savex = v;
|
||||
else if (ARG("-playy")) savey = v;
|
||||
else if (ARG("-playrx")) saverx = v;
|
||||
|
||||
Reference in New Issue
Block a user