VirtualBox

Ignore:
Timestamp:
Sep 9, 2009 6:38:18 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52129
Message:

NAT: stdio -> IPRT/fileio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_ftp.c

    r22452 r22873  
    676676                if (ftp_message_type == FTP_PORT_COMMAND) {
    677677                    /* Generate PORT command string. */
     678#ifndef VBOX
    678679                    sprintf(stemp, "PORT %d,%d,%d,%d,%d,%d\r\n",
    679680                        a1, a2, a3, a4, p1, p2);
     681#else
     682                    RTStrPrintf(stemp, sizeof(stemp), "PORT %d,%d,%d,%d,%d,%d\r\n",
     683                        a1, a2, a3, a4, p1, p2);
     684#endif
    680685                } else {
    681686                    /* Generate 227 reply string. */
     687#ifndef VBOX
    682688                    sprintf(stemp,
    683689                        "227 Entering Passive Mode (%d,%d,%d,%d,%d,%d)\r\n",
    684690                        a1, a2, a3, a4, p1, p2);
     691#else
     692                    RTStrPrintf(stemp, sizeof(stemp),
     693                        "227 Entering Passive Mode (%d,%d,%d,%d,%d,%d)\r\n",
     694                        a1, a2, a3, a4, p1, p2);
     695#endif
    685696                }
    686697                break;
    687698            case FTP_EPRT_COMMAND:
    688699                /* Generate EPRT command string. */
     700#ifndef VBOX
    689701                sprintf(stemp, "EPRT |1|%d.%d.%d.%d|%d|\r\n",
    690702                    a1, a2, a3, a4, ntohs(alias_port));
     703#else
     704                RTStrPrintf(stemp, sizeof(stemp), "EPRT |1|%d.%d.%d.%d|%d|\r\n",
     705                    a1, a2, a3, a4, ntohs(alias_port));
     706#endif
    691707                break;
    692708            case FTP_229_REPLY:
    693709                /* Generate 229 reply string. */
     710#ifndef VBOX
    694711                sprintf(stemp, "229 Entering Extended Passive Mode (|||%d|)\r\n",
    695712                    ntohs(alias_port));
     713#else
     714                RTStrPrintf(stemp, sizeof(stemp), "229 Entering Extended Passive Mode (|||%d|)\r\n",
     715                    ntohs(alias_port));
     716#endif
    696717                break;
    697718            }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette