mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
zapit:use avoid unaligned hack only with sh4 hw; this segfault on not sh4 hw
Origin commit data
------------------
Commit: 9474591afe
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-10-19 (Tue, 19 Oct 2021)
This commit is contained in:
@@ -449,9 +449,10 @@ void CBouquetManager::parseBouquetsXml(const char *fname, bool bUser)
|
||||
if (uName)
|
||||
uname = uName;
|
||||
const char *url = xmlGetAttribute(channel_node, "u");
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
if (url && ((uintptr_t)url % 4))
|
||||
url = std::string(url).c_str(); /* hack to ensure buffer is aligned */
|
||||
|
||||
#endif
|
||||
GET_ATTR(channel_node, "i", SCANF_SERVICE_ID_TYPE, service_id);
|
||||
GET_ATTR(channel_node, "on", SCANF_ORIGINAL_NETWORK_ID_TYPE, original_network_id);
|
||||
GET_ATTR(channel_node, "s", SCANF_SATELLITE_POSITION_TYPE, satellitePosition);
|
||||
|
Reference in New Issue
Block a user