Projects
Essentials
lightspark
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 76
View file
lightspark.spec
Changed
@@ -31,6 +31,7 @@ Group: Productivity/Multimedia/Other Url: https://launchpad.net/lightspark/ Source0: lightspark.tar.xz +Patch: use_strcmp.diff BuildRequires: boost-devel BuildRequires: cmake BuildRequires: desktop-file-utils @@ -89,6 +90,7 @@ %prep %setup -q -n %{name} +%patch -p1 %build export CFLAGS='%{optflags}'
View file
use_strcmp.diff
Added
@@ -0,0 +1,43 @@ +diff --git a/src/parsing/crossdomainpolicy.cpp b/src/parsing/crossdomainpolicy.cpp +index 57b45fd..0e52107 100644 +--- a/src/parsing/crossdomainpolicy.cpp ++++ b/src/parsing/crossdomainpolicy.cpp +@@ -35,7 +35,7 @@ CrossDomainPolicy::ELEMENT CrossDomainPolicy::getNextElement() + { + if (first) + { +- if (xml.root().name() != "cross-domain-policy") ++ if (strcmp(xml.root().name(), "cross-domain-policy")) + return INVALID; + currentnode = xml.root().first_child(); + } +@@ -83,12 +83,12 @@ CrossDomainPolicy::ELEMENT CrossDomainPolicy::getNextElement() + toPorts = currentnode.attribute("to-ports").value(); + secure = false; + secureSpecified = false; +- if(currentnode.attribute("secure").value() == "false") ++ if(!strcmp(currentnode.attribute("secure").value(), "false")) + { + secure = false; + secureSpecified = true; + } +- else if(currentnode.attribute("secure").value() == "true") ++ else if(!strcmp(currentnode.attribute("secure").value(), "true")) + { + secure = true; + secureSpecified = true; +@@ -113,12 +113,12 @@ CrossDomainPolicy::ELEMENT CrossDomainPolicy::getNextElement() + headers = currentnode.attribute("headers").value(); + secure = false; + secureSpecified = false; +- if(currentnode.attribute("secure").value() == "false") ++ if(!strcmp(currentnode.attribute("secure").value(), "false")) + { + secure = false; + secureSpecified = true; + } +- else if(currentnode.attribute("secure").value() == "true") ++ else if(!strcmp(currentnode.attribute("secure").value(), "true")) + { + secure = true; + secureSpecified = true;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.