Lines 5-12
Link Here
|
5 |
if (CmndOneLine(NULL, ln, ln2) == 0) |
5 |
if (CmndOneLine(NULL, ln, ln2) == 0) |
6 |
{ |
6 |
{ |
7 |
- *major = GetIntVers(ln2, &j); |
7 |
- *major = GetIntVers(ln2, &j); |
8 |
+ j=0; for (i=0; ln2[i] && !isspace(ln[i]); i++) j++; |
8 |
+ j=0; for (i=0; ln2[i] && !isspace(ln[i]); i++) |
9 |
+ *major = GetIntVers(ln2+j, &i); |
9 |
+ *major = GetIntVers(ln2+j, &i); j++; |
10 |
if (*major != -1) |
10 |
if (*major != -1) |
11 |
{ |
11 |
{ |
12 |
*minor = GetIntVers(ln2+j, &i); j += i; |
12 |
*minor = GetIntVers(ln2+j, &i); j += i; |