mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-17 18:33:35 +02:00
memcpy -> memmove
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1278 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 85f5e1110d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-03-09 (Wed, 09 Mar 2011)
This commit is contained in:
@@ -148,10 +148,10 @@ bool getUTC(UTC_t * const UTC, const bool TDT)
|
||||
return false;
|
||||
}
|
||||
memset(&tdt_tot_header, 0, sizeof(tdt_tot_header));
|
||||
memcpy(&tdt_tot_header, buf, size);
|
||||
memmove(&tdt_tot_header, buf, size);
|
||||
|
||||
int64_t tmp = tdt_tot_header.UTC_time.time;
|
||||
memcpy(cUTC, (&tdt_tot_header.UTC_time), 5);
|
||||
memmove(cUTC, (&tdt_tot_header.UTC_time), 5);
|
||||
if ((cUTC[2] > 0x23) || (cUTC[3] > 0x59) || (cUTC[4] > 0x59)) // no valid time
|
||||
{
|
||||
printf("[sectionsd] getUTC: invalid %s section received: %02x %02x %02x %02x %02x\n",
|
||||
@@ -174,7 +174,7 @@ bool getUTC(UTC_t * const UTC, const bool TDT)
|
||||
to = (struct descrLocalTimeOffset *)&b2[2];
|
||||
unsigned char cc[4];
|
||||
cc[3] = 0;
|
||||
memcpy(cc, to->country_code, 3);
|
||||
memmove(cc, to->country_code, 3);
|
||||
time_t t = changeUTCtoCtime(&b2[2+6],0);
|
||||
xprintf("getUTC(TOT): len=%d cc=%s reg_id=%d "
|
||||
"pol=%d offs=%04x new=%04x when=%s",
|
||||
|
Reference in New Issue
Block a user