mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
timerdclient: fix -Wstringop-truncation warnings
This commit is contained in:
@@ -344,7 +344,7 @@ int CTimerdClient::addTimerEvent( CTimerd::CTimerEventTypes evType, void* data,
|
||||
tri.epg_id = ri->epg_id;
|
||||
tri.recordingSafety = ri->recordingSafety;
|
||||
tri.autoAdjustToEPG = ri->autoAdjustToEPG;
|
||||
strncpy(tri.recordingDir, ri->recordingDir, RECORD_DIR_MAXLEN-1);
|
||||
strncpy(tri.recordingDir, ri->recordingDir, RECORD_DIR_MAXLEN);
|
||||
length = sizeof( CTimerd::TransferRecordingInfo);
|
||||
data = &tri;
|
||||
}
|
||||
|
@@ -120,7 +120,7 @@ class CTimerdClient:private CBasicClient
|
||||
eventInfo.apids = apids;
|
||||
eventInfo.recordingSafety = safety;
|
||||
eventInfo.autoAdjustToEPG = autoAdjust;
|
||||
strncpy(eventInfo.recordingDir, recDir.c_str(), RECORD_DIR_MAXLEN);
|
||||
strncpy(eventInfo.recordingDir, recDir.c_str(), RECORD_DIR_MAXLEN-1);
|
||||
return addTimerEvent(CTimerd::TIMER_RECORD, &eventInfo, announcetime, alarmtime, stoptime, evrepeat, repeatcount,forceAdd);
|
||||
};
|
||||
|
||||
|
@@ -34,7 +34,7 @@
|
||||
|
||||
#define REMINDER_MESSAGE_MAXLEN 31
|
||||
#define EXEC_PLUGIN_NAME_MAXLEN 256
|
||||
#define RECORD_DIR_MAXLEN 1024
|
||||
#define RECORD_DIR_MAXLEN 1025
|
||||
#define EPG_TITLE_MAXLEN 51
|
||||
|
||||
#define TIMERD_APIDS_CONF 0x00
|
||||
|
Reference in New Issue
Block a user