Changeset 88297 in vbox
- Timestamp:
- Mar 26, 2021 12:29:59 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
include/iprt/x86.h (modified) (1 diff)
-
src/VBox/Main/src-server/solaris/NetIf-solaris.cpp (modified) (2 diffs)
-
src/VBox/Main/src-server/solaris/PerformanceSolaris.cpp (modified) (1 diff)
-
src/VBox/RDP/client-1.8.4/Makefile.kmk (modified) (1 diff)
-
src/VBox/RDP/client-1.8.4/rdesktop.c (modified) (3 diffs)
-
src/VBox/RDP/client-1.8.4/rdp.c (modified) (2 diffs)
-
src/VBox/RDP/client-1.8.4/utils.c (modified) (1 diff)
-
src/VBox/RDP/client-1.8.4/xclip.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/x86.h
r86489 r88297 39 39 #endif 40 40 41 /* Workaround for Solaris sys/regset.h defining CS, DS */ 41 /** Workaround for Solaris sys/regset.h defining CS, DS and sys/controlregs.h 42 * defining MSR_IA32_FLUSH_CMD */ 42 43 #ifdef RT_OS_SOLARIS 43 44 # undef CS 44 45 # undef DS 46 # undef MSR_IA32_FLUSH_CMD 45 47 #endif 46 48 -
trunk/src/VBox/Main/src-server/solaris/NetIf-solaris.cpp
r83794 r88297 63 63 */ 64 64 int cbInstance = 0; 65 int cbIface = strlen(pszIfaceName);65 size_t cbIface = strlen(pszIfaceName); 66 66 const char *pszEnd = pszIfaceName + cbIface - 1; 67 for ( int i = 0; i < cbIface - 1; i++)67 for (size_t i = 0; i < cbIface - 1; i++) 68 68 { 69 69 if (!RT_C_IS_DIGIT(*pszEnd)) … … 333 333 */ 334 334 int cbInstance = 0; 335 int cbIface = strlen(szIfaceName);335 size_t cbIface = strlen(szIfaceName); 336 336 const char *pszEnd = pszIface + cbIface - 1; 337 for ( int i = 0; i < cbIface - 1; i++)337 for (size_t i = 0; i < cbIface - 1; i++) 338 338 { 339 339 if (!RT_C_IS_DIGIT(*pszEnd)) -
trunk/src/VBox/Main/src-server/solaris/PerformanceSolaris.cpp
r82968 r88297 336 336 */ 337 337 int cbInstance = 0; 338 int cbIface = strlen(pszIfaceName);338 size_t cbIface = strlen(pszIfaceName); 339 339 const char *pszEnd = pszIfaceName + cbIface - 1; 340 for ( int i = 0; i < cbIface - 1; i++)340 for (size_t i = 0; i < cbIface - 1; i++) 341 341 { 342 342 if (!RT_C_IS_DIGIT(*pszEnd)) -
trunk/src/VBox/RDP/client-1.8.4/Makefile.kmk
r82968 r88297 61 61 # define __USE_LEGACY_PROTOTYPES__ until our buildbox is updated sufficiently 62 62 rdesktop-vrdp_DEFS.solaris = \ 63 HAVE_SYS_FILIO_H=1 RDPSND_SUN=1 HAVE_ICONV_H=1 ICONV_CONST=STAT_STATVFS64=1 _FILE_OFFSET_BITS=64 \63 HAVE_SYS_FILIO_H=1 RDPSND_SUN=1 ICONV_CONST=const STAT_STATVFS64=1 _FILE_OFFSET_BITS=64 \ 64 64 DIR_FD_MEMBER_NAME=dd_fd __USE_LEGACY_PROTOTYPES__ HAVE_SYS_VFS_H=1 HAVE_SYS_STATFS_H=1 65 65 rdesktop-vrdp_DEFS.freebsd = \ -
trunk/src/VBox/RDP/client-1.8.4/rdesktop.c
r76779 r88297 658 658 case 'u': 659 659 g_username = (char *) xmalloc(strlen(optarg) + 1); 660 STRNCPY(g_username, optarg, strlen(optarg) + 1);660 strcpy(g_username, optarg); 661 661 username_option = 1; 662 662 break; … … 1209 1209 xfree(g_username); 1210 1210 g_username = (char *) xmalloc(strlen(g_redirect_username) + 1); 1211 STRNCPY(g_username, g_redirect_username, strlen(g_redirect_username) + 1);1211 strcpy(g_username, g_redirect_username); 1212 1212 STRNCPY(server, g_redirect_server, sizeof(server)); 1213 1213 flags |= RDP_INFO_AUTOLOGON; … … 1640 1640 if (*rest) 1641 1641 STRNCPY(buf, *rest, buflen); 1642 strncat(buf, input, inputlen);1642 strncat(buf, input, buflen); 1643 1643 p = buf; 1644 1644 -
trunk/src/VBox/RDP/client-1.8.4/rdp.c
r76779 r88297 39 39 #ifdef HAVE_ICONV 40 40 #ifdef HAVE_ICONV_H 41 42 #if defined(RT_OS_SOLARIS) && !defined(_XPG6)43 # define VBOX_XPG6_TMP_DEF44 # define _XPG645 #endif46 #if defined(RT_OS_SOLARIS) && defined(__USE_LEGACY_PROTOTYPES__)47 # define VBOX_LEGACY_PROTO_TMP_DEF48 # undef __USE_LEGACY_PROTOTYPES__49 #endif50 41 #include <iconv.h> 51 #if defined(VBOX_XPG6_TMP_DEF)52 # undef _XPG653 # undef VBOX_XPG6_TMP_DEF54 #endif55 #if defined(VBOX_LEGACY_PROTO_TMP_DEF)56 # define __USE_LEGACY_PROTOTYPES__57 # undef VBOX_LEGACY_PROTO_TMP_DEF58 42 #endif 59 43 60 44 #ifndef ICONV_CONST 61 45 #define ICONV_CONST "" 62 #endif63 46 #endif 64 47 #endif … … 729 712 out_uint16(s, 0); /* Compression types */ 730 713 out_uint16_le(s, (g_rdp_version >= RDP_V5) ? 0x40d : 0); 731 /* Pad, according to T.128. 0x40d seems to 714 /* Pad, according to T.128. 0x40d seems to 732 715 trigger 733 the server to start sending RDP5 packets. 716 the server to start sending RDP5 packets. 734 717 However, the value is 0x1d04 with W2KTSK and 735 718 NT4MS. Hmm.. Anyway, thankyou, Microsoft, 736 for sending such information in a padding 719 for sending such information in a padding 737 720 field.. */ 738 721 out_uint16(s, 0); /* Update capability */ -
trunk/src/VBox/RDP/client-1.8.4/utils.c
r55123 r88297 188 188 { 189 189 #ifdef HAVE_ICONV 190 static iconv_t *iconv_h = (iconv_t) - 1;190 static iconv_t iconv_h = (iconv_t) - 1; 191 191 if (strncmp(g_codepage, "UTF-8", strlen("UTF-8")) == 0) 192 192 goto pass_trough_as_is; -
trunk/src/VBox/RDP/client-1.8.4/xclip.c
r55123 r88297 44 44 #ifdef HAVE_ICONV 45 45 #ifdef HAVE_LANGINFO_H 46 #ifdef HAVE_ICONV_H47 46 #include <langinfo.h> 48 49 #if defined(RT_OS_SOLARIS) && !defined(_XPG6)50 # define VBOX_XPG6_TMP_DEF51 # define _XPG652 #endif53 #if defined(RT_OS_SOLARIS) && defined(__USE_LEGACY_PROTOTYPES__)54 # define VBOX_LEGACY_PROTO_TMP_DEF55 # undef __USE_LEGACY_PROTOTYPES__56 # endif57 #include <iconv.h>58 #if defined(VBOX_XPG6_TMP_DEF)59 # undef _XPG660 # undef VBOX_XPG6_TMP_DEF61 #endif62 #if defined(VBOX_LEGACY_PROTO_TMP_DEF)63 # define __USE_LEGACY_PROTOTYPES__64 # undef VBOX_LEGACY_PROTO_TMP_DEF65 #endif66 67 47 #define USE_UNICODE_CLIPBOARD 68 48 #endif 49 #ifdef HAVE_ICONV_H 50 #include <iconv.h> 69 51 #endif 70 52 #endif
Note:
See TracChangeset
for help on using the changeset viewer.

