* src/ftp-ls.c (ftp_parse_winnt_ls): Fix memset params

This commit is contained in:
Tim Rühsen 2016-09-09 10:20:51 +02:00
parent eba724a128
commit 15c1e0eb7b

View File

@ -478,7 +478,7 @@ ftp_parse_winnt_ls (const char *file)
}
/* Now it is possible to determine the position of the first symbol in
filename. */
memset(&cur, sizeof (cur), 0);
memset(&cur, 0, sizeof (cur));
cur.name = xstrdup(filename);
DEBUGP (("Name: '%s'\n", cur.name));