compat: csi parameters are always decimal
There can be some leading zeros.
This commit is contained in:
parent
71d27572b3
commit
72bbb101f8
|
@ -33,7 +33,6 @@ static int
|
||||||
_csi_arg_get(Eina_Unicode **ptr)
|
_csi_arg_get(Eina_Unicode **ptr)
|
||||||
{
|
{
|
||||||
Eina_Unicode *b = *ptr;
|
Eina_Unicode *b = *ptr;
|
||||||
int octal = 0;
|
|
||||||
int sum = 0;
|
int sum = 0;
|
||||||
|
|
||||||
while ((*b) && (!isdigit(*b))) b++;
|
while ((*b) && (!isdigit(*b))) b++;
|
||||||
|
@ -42,11 +41,9 @@ _csi_arg_get(Eina_Unicode **ptr)
|
||||||
*ptr = NULL;
|
*ptr = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (*b == '0') octal = 1;
|
|
||||||
while (isdigit(*b))
|
while (isdigit(*b))
|
||||||
{
|
{
|
||||||
if (octal) sum *= 8;
|
sum *= 10;
|
||||||
else sum *= 10;
|
|
||||||
sum += *b - '0';
|
sum += *b - '0';
|
||||||
b++;
|
b++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue