opnsense-ports/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

14 lines
678 B
C++

--- 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))