mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
timerdclient: fix -Wstringop-truncation warnings
Origin commit data
------------------
Branch: ni/coolstream
Commit: af3abc9b8e
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-01-30 (Thu, 30 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -347,7 +347,7 @@ int CTimerdClient::addTimerEvent( CTimerd::CTimerEventTypes evType, void* data,
|
||||
tri.recordingSafety = ri->recordingSafety;
|
||||
tri.autoAdjustToEPG = ri->autoAdjustToEPG;
|
||||
tri.channel_ci = ri->channel_ci; //NI
|
||||
strncpy(tri.recordingDir, ri->recordingDir, RECORD_DIR_MAXLEN-1);
|
||||
strncpy(tri.recordingDir, ri->recordingDir, RECORD_DIR_MAXLEN);
|
||||
length = sizeof( CTimerd::TransferRecordingInfo);
|
||||
data = &tri;
|
||||
}
|
||||
|
@@ -121,7 +121,7 @@ class CTimerdClient:private CBasicClient
|
||||
eventInfo.recordingSafety = safety;
|
||||
eventInfo.autoAdjustToEPG = autoAdjust;
|
||||
eventInfo.channel_ci = channel_ci; //NI
|
||||
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