#include <errno.h>
#include <string.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#include "utils.h"
#include "connect.h"
#include "host.h"
DEBUGP(("respline is %s\n", respline));
- /* Parse the response. */
- s = respline;
-
/* Skip the useless stuff and get what's inside the parentheses */
start = strchr (respline, '(');
if (start == NULL)
return FTPINVPASV;
}
- if (*s++ != ')')
+ if (*s != ')')
{
xfree (respline);
return FTPINVPASV;