Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw
kdewin-png2ico
add-find-package-qt4-to-cmakelists.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File add-find-package-qt4-to-cmakelists.patch of Package kdewin-png2ico
Index: qanihandler.cpp =================================================================== --- qanihandler.cpp (Revision 1192707) +++ qanihandler.cpp (Arbeitskopie) @@ -765,16 +765,19 @@ RIFFANIFILE af; - strcpy(af.FileId, "RIFF"); + //strcpy(af.FileId, "RIFF"); + strncpy(af.FileId, "RIFF", 4); int sz = 0; for (int i = 0; i < id.idCount; i++) { sz += 8 + 6 + BMP_INFOHDR_SIZE + ICONDIRENTRY_SIZE + imageData[i].size(); } af.Size = 4 + ANIHEADERSUBCHUNK_SIZE + LISTFRAMECHUNK_SIZE + sz; - strcpy(af.FormID, "ACON"); + //strcpy(af.FormID, "ACON"); + strncpy(af.FormID, "ACON", 4); - strcpy(af.AniHeader.ChunkId, "anih"); + //strcpy(af.AniHeader.ChunkId, "anih"); + strncpy(af.AniHeader.ChunkId, "anih", 4); af.AniHeader.Size = 36; af.AniHeader.HeaderSize = 36; af.AniHeader.NumFrames = id.idCount; @@ -786,9 +789,11 @@ af.AniHeader.DisplayRate = framerate; af.AniHeader.Flags = 0x00000001; - strcpy(af.ListFrame.ListId, "LIST"); + //strcpy(af.ListFrame.ListId, "LIST"); + strncpy(af.ListFrame.ListId, "LIST", 4); af.ListFrame.ListSize = sz+4; - strcpy(af.ListFrame.ListType, "fram"); + //strcpy(af.ListFrame.ListType, "fram"); + strncpy(af.ListFrame.ListType, "fram", 4); bool bOk = (device->write((char*)&af, sizeof(af)) == sizeof(af)) ? true : false; Index: CMakeLists.txt =================================================================== --- CMakeLists.txt (Revision 1192707) +++ CMakeLists.txt (Arbeitskopie) @@ -1,4 +1,7 @@ +cmake_minimum_required(VERSION 2.8) +find_package(Qt4) + add_definitions(${QT_DEFINITIONS} ) include_directories(
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor