cut 'n paste bug fixed

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1344 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2004-02-29 20:36:49 +00:00
parent e71ca0b463
commit 631899d1ca
+2 -2
View File
@@ -594,14 +594,14 @@ static int
parseIntOption (const char *str, int *result, const char *optName)
{
char *endPtr;
float temp;
int temp;
if (str[0] == '\0')
{
fprintf (stderr, "Error: Invalid value for '%s'.\n", optName);
return -1;
}
temp = (float) strtol(str, &endPtr, 10);
temp = (int) strtol(str, &endPtr, 10);
if (*endPtr != '\0')
{
fprintf (stderr, "Error: Junk characters in argument '%s'.\n",