Skip to content

Commit

Permalink
zapit:use avoid unaligned hack only with sh4 hw; this segfault on not…
Browse files Browse the repository at this point in the history
… sh4 hw
  • Loading branch information
satbaby committed Oct 19, 2021
1 parent 2bffc09 commit f31602f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zapit/src/bouquets.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit f31602f

Please sign in to comment.