X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Source%2FCPack%2FcmCPackDragNDropGenerator.cxx;h=d973c01347ac5f2e0264aea1d9f94fd886973a09;hb=297c63fa65327491a2b50e521b661c5835a19fe4;hp=78cb1b61cd2dec5d90f435f1a2fd23f402ae46f3;hpb=ef8aa19c33e83ff019595fd7f8fdc29c35c336a3;p=platform%2Fupstream%2Fcmake.git diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx index 78cb1b6..d973c01 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.cxx +++ b/Source/CPack/cmCPackDragNDropGenerator.cxx @@ -442,7 +442,22 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir, line.replace(pos, 1, "\\\""); pos = line.find('\"', pos+2); } - osf << " \"" << line << "\\n\"\n"; + // break up long lines to avoid Rez errors + std::vector lines; + const size_t max_line_length = 512; + for(size_t i=0; i line.size()) + line_length = line.size()-i; + lines.push_back(line.substr(i, line_length)); + } + + for(size_t i=0; i