diff options
Diffstat (limited to 'cpukit/libnetworking/lib/ftpfs.c')
-rw-r--r-- | cpukit/libnetworking/lib/ftpfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c index 8a6769f2de..28ec9422ae 100644 --- a/cpukit/libnetworking/lib/ftpfs.c +++ b/cpukit/libnetworking/lib/ftpfs.c @@ -636,8 +636,8 @@ int rtems_ftp_open( hent = gethostbyname(hostname); if (hent != NULL) { - memcpy((char *)(&(fsp->farCtrlAddress.sin_addr)), - hent->h_addr, + bcopy(hent->h_addr, + (char *)(&(fsp->farCtrlAddress.sin_addr)), sizeof(fsp->farCtrlAddress.sin_addr)); } else { |