Code: Select all
*** ../ZoneMinder-1.22.2.orig/src/zm_monitor.cpp 2006-05-05 12:42:31.000000000 +0300
--- ./src/zm_monitor.cpp 2006-10-10 09:14:42.000000000 +0300
***************
*** 1299,1305 ****
closeEvent();
static char sql[BUFSIZ];
! snprintf( sql, sizeof(sql), "select Function+0, Enabled, EventPrefix, LabelFormat, LabelX, LabelY, WarmupCount, PreEventCount, PostEventCount, AlarmFrameCount, SectionLength, FrameSkip, MaxFPS, AlarmMaxFPS, FPSReportInterval, RefBlendPerc,
TrackMotion from Monitors where Id = '%d'", id );
if ( mysql_query( &dbconn, sql ) )
{
Error(( "Can't run query: %s", mysql_error( &dbconn ) ));
--- 1299,1305 ----
closeEvent();
static char sql[BUFSIZ];
! snprintf( sql, sizeof(sql), "select Function+0, Enabled, LinkedMonitors, EventPrefix, LabelFormat, LabelX, LabelY, WarmupCount, PreEventCount, PostEventCount, AlarmFrameCount, SectionLength, FrameSkip, MaxFPS, AlarmMaxFPS, FPSReportInterval
, RefBlendPerc, TrackMotion from Monitors where Id = '%d'", id );
if ( mysql_query( &dbconn, sql ) )
{
Error(( "Can't run query: %s", mysql_error( &dbconn ) ));