Changed base of strtol.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@745 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
0aafd9d30b
commit
d4c6ff1db8
|
@ -49,7 +49,7 @@ void ConfigItem::ConvertValue() const
|
||||||
if ( !strcmp( type, "boolean" ) )
|
if ( !strcmp( type, "boolean" ) )
|
||||||
{
|
{
|
||||||
cfg_type = CFG_BOOLEAN;
|
cfg_type = CFG_BOOLEAN;
|
||||||
cfg_value.boolean_value = (bool)strtol( value, 0, 2 );
|
cfg_value.boolean_value = (bool)strtol( value, 0, 0 );
|
||||||
}
|
}
|
||||||
else if ( !strcmp( type, "integer" ) )
|
else if ( !strcmp( type, "integer" ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue