[arch-commits] Commit in libmsn/trunk (fix-bug-with-emesene.patch)
Andrea Scarpino
andrea at archlinux.org
Fri Apr 24 13:40:20 UTC 2009
Date: Friday, April 24, 2009 @ 09:40:20
Author: andrea
Revision: 36549
added emesene patch
Added:
libmsn/trunk/fix-bug-with-emesene.patch
----------------------------+
fix-bug-with-emesene.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
Added: fix-bug-with-emesene.patch
===================================================================
--- fix-bug-with-emesene.patch (rev 0)
+++ fix-bug-with-emesene.patch 2009-04-24 13:40:20 UTC (rev 36549)
@@ -0,0 +1,18 @@
+--- trunk/msn/message.cpp 2009/03/18 21:57:57 95
++++ trunk/msn/message.cpp 2009/04/03 18:04:25 96
+@@ -59,10 +59,13 @@
+ if (formatHeader.empty())
+ return formatInfo;
+
+- std::vector<std::string> parameters = splitString(formatHeader, "; ");
+- std::vector<std::string>::const_iterator i = parameters.begin();
++ std::vector<std::string> parameters = splitString(formatHeader, ";");
++ std::vector<std::string>::iterator i = parameters.begin();
+ for (; i != parameters.end(); i++)
+ {
++ if (i->at(0) == ' ')
++ i->erase(0, 1);
++
+ std::vector<std::string> pair = splitString(*i, "=");
+ if (pair.size() == 2)
+ formatInfo[decodeURL(pair[0])] = decodeURL(pair[1]);
More information about the arch-commits
mailing list