Fix some compilation warnings
parent
c526fcedd7
commit
ac7f7f08a7
|
@ -110,7 +110,7 @@ RETSIGTYPE zm_die_handler( int signal )
|
|||
char **messages = backtrace_symbols( trace, trace_size );
|
||||
if ( size_t offset = strcspn( messages[trace_size-1], " " ) )
|
||||
{
|
||||
snprintf( cmd_ptr, sizeof(cmd)-(cmd_ptr-cmd), messages[trace_size-1] );
|
||||
snprintf( cmd_ptr, sizeof(cmd)-(cmd_ptr-cmd), "%s", messages[trace_size-1] );
|
||||
cmd_ptr += offset;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -934,7 +934,7 @@ int Zone::Load( Monitor *monitor, Zone **&zones )
|
|||
const char *Name = dbrow[col++];
|
||||
int Type = atoi(dbrow[col++]);
|
||||
const char *Units = dbrow[col++];
|
||||
/* int NumCoords = */ atoi(dbrow[col++]);
|
||||
int NumCoords = atoi(dbrow[col++]);
|
||||
const char *Coords = dbrow[col++];
|
||||
int AlarmRGB = dbrow[col]?atoi(dbrow[col]):0; col++;
|
||||
int CheckMethod = atoi(dbrow[col++]);
|
||||
|
|
Loading…
Reference in New Issue