mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 19:18:59 +08:00
8cff61fee8
* [libopensp] initial port * [libopensp] update versions * [libopensp] fix license file location * [libopensp] update versions * [libopensp] need autopoint on Windows * [libopensp] update versions * [libopensp] also remove debug/include * [libopensp] use KDE's CMakeLists on Windows * [libopensp] remove /bin for static builds * [libopensp] update versions * [libopensp] fix Windows/UWP condition * [libopensp] update versions * [libopensp] align *Nix functionality with Windows * [libopensp] update versions * [libopensp] fix compilation on arm64-osx * [libopensp] update versions * [libopensp] fix getenv failures on UWP * [libopensp] update versions * [libopensp] add comment on LDFLAGS usage * [libopensp] update versions * [libopensp] reduce patch size * [libopensp] update versions * [libopensp] further reduce patch size * [libopensp] update versions * [libopensp] don't overwrite vcpkg's own LDFLAGS * [libopensp] backport Debian patch with several fixes * [libopensp] update versions * [libopensp] fix library name on Windows * [libopensp] update versions * [libopensp] don't force shared lib on Windows * [libopensp] update versions * [libopensp] reduce Debian patch size * [libopensp] update versions * [libopensp] UWP in platform definition is redundant Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * [libopensp] update versions Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
--- opensp-1.5.2.orig/sx/XmlOutputEventHandler.cxx
|
|
+++ opensp-1.5.2/sx/XmlOutputEventHandler.cxx
|
|
@@ -1199,12 +1199,22 @@
|
|
// Check to make sure we haven't passed outside of the
|
|
// output directory
|
|
char *dirs = strdup (filePath);
|
|
+#ifdef MAXPATHLEN
|
|
char realDirs[MAXPATHLEN];
|
|
char realOutputDir[MAXPATHLEN];
|
|
+#else
|
|
+ char *realDirs;
|
|
+ char *realOutputDir;
|
|
+#endif
|
|
char *outputDir = strdup(outputDir_);
|
|
|
|
+#ifdef MAXPATHLEN
|
|
realpath((const char *)dirname(dirs), realDirs);
|
|
realpath((const char *)dirname(outputDir), realOutputDir);
|
|
+#else
|
|
+ realDirs = realpath((const char *)dirname(dirs), NULL);
|
|
+ realOutputDir = realpath((const char *)dirname(outputDir), NULL);
|
|
+#endif
|
|
|
|
if (strncmp(realDirs, realOutputDir, strlen (realOutputDir)) != 0) {
|
|
app_->message(XmlOutputMessages::pathOutsideOutputDirectory,
|
|
@@ -1214,6 +1224,11 @@
|
|
}
|
|
}
|
|
|
|
+#ifndef MAXPATHLEN
|
|
+ free(realDirs);
|
|
+ free(realOutputDir);
|
|
+#endif
|
|
+
|
|
// Make the necessary directories
|
|
maybeCreateDirectories(dirname(dirs));
|
|
|