summaryrefslogtreecommitdiff
path: root/media-sound/orpheus/files/orpheus-1.6-bufsize.patch
blob: 319fcd83eeccc174c08366509e88c77b61b652e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: orpheus-1.6/kkstrtext-0.1/kkstrtext.cc
===================================================================
--- orpheus-1.6.orig/kkstrtext-0.1/kkstrtext.cc
+++ orpheus-1.6/kkstrtext-0.1/kkstrtext.cc
@@ -1132,7 +1132,7 @@ string striprtf(const string &s, const s
 			    bunicode = false;
 			    if(unichar.substr(0, 4).find_first_not_of("0123456789") == -1) {
 				long l = strtol(unichar.substr(0, 4).c_str(), 0, 0);
-				char ubuf[sizeof(long)+4];
+				char ubuf[sizeof(long)*2+4];
 			    #ifdef HAVE_ICONV
 				memcpy(ubuf, "\xff\xfe", 2);
 				memcpy(ubuf+2, &l, sizeof(long));