diff options
Diffstat (limited to 'media-sound/karlyriceditor/files/karlyriceditor-1.4-qmin.patch')
-rw-r--r-- | media-sound/karlyriceditor/files/karlyriceditor-1.4-qmin.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/media-sound/karlyriceditor/files/karlyriceditor-1.4-qmin.patch b/media-sound/karlyriceditor/files/karlyriceditor-1.4-qmin.patch new file mode 100644 index 000000000000..b7835e5973ac --- /dev/null +++ b/media-sound/karlyriceditor/files/karlyriceditor-1.4-qmin.patch @@ -0,0 +1,13 @@ +Index: karlyriceditor-1.4/src/kfn_file_parser.cpp +=================================================================== +--- karlyriceditor-1.4.orig/src/kfn_file_parser.cpp ++++ karlyriceditor-1.4/src/kfn_file_parser.cpp +@@ -311,7 +311,7 @@ QByteArray KFNFileParser::extract( const + + while ( total_in < entry.length_in ) + { +- int toRead = qMin( sizeof(buffer), (unsigned int) entry.length_in - total_in ); ++ int toRead = qMin( sizeof(buffer), (size_t) entry.length_in - total_in ); + int bytesRead = m_file.read( buffer, toRead ); + + // We might need to write less than we read since the file is rounded to 16 bytes |