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:
@@ -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);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user