diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-03-28 23:35:31 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-03-28 23:35:31 +0000 |
commit | 5470a075ae2d397bc76901eac95732f987ef93a2 (patch) | |
tree | 6dc3fbdd44cfda15522541dbca53afb4772b18d8 /emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp | |
parent | - Stage support (diff) |
- Update to 4.3.10.
- Build with base C/C++ compiler, i.e., clang on 10.0+, as much as we can
to remove GCC run-time dependency and to reduce possible C++ ABI conflicts.
Diffstat (limited to 'emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp')
-rw-r--r-- | emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp b/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp new file mode 100644 index 000000000000..54e3c3a221a0 --- /dev/null +++ b/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp @@ -0,0 +1,14 @@ +--- src/VBox/Runtime/common/misc/uri.cpp.orig 2013-12-18 11:10:34.000000000 -0500 ++++ src/VBox/Runtime/common/misc/uri.cpp 2013-12-19 20:57:32.000000000 -0500 +@@ -132,7 +132,10 @@ + /* % encoding means the percent sign and exactly 2 hexadecimal + * digits describing the ASCII number of the character. */ + ++iIn; +- char szNum[] = { pszString[iIn++], pszString[iIn++], '\0' }; ++ char szNum[3]; ++ szNum[0] = pszString[iIn++]; ++ szNum[1] = pszString[iIn++]; ++ szNum[2] = '\0'; + uint8_t u8; + rc = RTStrToUInt8Ex(szNum, NULL, 16, &u8); + if (RT_FAILURE(rc)) |