Chameleon

Chameleon Commit Details

Date:2015-03-11 15:34:03 (4 years 4 months ago)
Author:ErmaC
Commit:2614
Parents: 2613
Message:Allow multi-digit version numbers (disk.c)
Changes:
M/trunk/i386/libsaio/disk.c

File differences

trunk/i386/libsaio/disk.c
17601760
17611761
17621762
1763
1763
17641764
17651765
17661766
17671767
1768
1769
1768
1769
17701770
1771
1771
17721772
1773
1774
1775
1776
17771773
17781774
17791775
const char *val;
int len;
if (getValueForKey(kProductVersion, &val, &len, &systemVersion))
if (getValueForKey(kProductVersion, &val, &len, &systemVersion))
{
// getValueForKey uses const char for val
// so copy it and trim
*str = '\0';
// crazybirdy
if (len > 4 && (val[3] == '1'))
strncat(str, val, MIN(len, 5));
if(str[4] == '.')
{
strncat(str, val, MIN(len, 5));
str[4] = '\0';
}
else
{
strncat(str, val, MIN(len, 4));
}
}
else
{

Archive Download the corresponding diff file

Revision: 2614