summaryrefslogtreecommitdiff
path: root/libftpconn
diff options
context:
space:
mode:
Diffstat (limited to 'libftpconn')
-rw-r--r--libftpconn/create.c2
-rw-r--r--libftpconn/open.c2
-rw-r--r--libftpconn/unix.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/libftpconn/create.c b/libftpconn/create.c
index 20a64561..0ffdb49a 100644
--- a/libftpconn/create.c
+++ b/libftpconn/create.c
@@ -54,7 +54,7 @@ ftp_conn_create (const struct ftp_conn_params *params,
new->actv_data_addr = 0;
new->cwd = 0;
new->type = 0;
- bzero (&new->syshooks, sizeof new->syshooks);
+ memset (&new->syshooks, 0, sizeof new->syshooks);
if (new->hooks && new->hooks->init)
err = (*new->hooks->init) (new);
diff --git a/libftpconn/open.c b/libftpconn/open.c
index f52bf4d0..f1a1b854 100644
--- a/libftpconn/open.c
+++ b/libftpconn/open.c
@@ -189,7 +189,7 @@ ftp_conn_open (struct ftp_conn *conn)
close (conn->control);
conn->control = -1;
}
- bzero (&conn->syshooks, sizeof conn->syshooks);
+ memset (&conn->syshooks, 0, sizeof conn->syshooks);
csock = socket (PF_INET, SOCK_STREAM, 0);
if (csock < 0)
diff --git a/libftpconn/unix.c b/libftpconn/unix.c
index 28efefdd..882fee8f 100644
--- a/libftpconn/unix.c
+++ b/libftpconn/unix.c
@@ -305,7 +305,7 @@ drwxrwxrwt 7 34 archive 512 May 1 14:28 /tmp
if (strncasecmp (p, "total ", 6) == 0)
return EAGAIN;
- bzero (stat, sizeof *stat);
+ memset (stat, 0, sizeof *stat);
#ifdef FSTYPE_FTP
stat->st_fstype = FSTYPE_FTP;
@@ -471,7 +471,7 @@ drwxrwxrwt 7 34 archive 512 May 1 14:28 /tmp
/* Date. Ick. */
/* Formats: MONTH DAY HH:MM and MONTH DAY YEAR */
- bzero (&tm, sizeof tm);
+ memset (&tm, 0, sizeof tm);
SKIP_WS ();
e = p + strcspn (p, " \t\n");