From cb6a30088278d85ee4e4cdf34df9c0febc0ccccc Mon Sep 17 00:00:00 2001 From: tosiara Date: Wed, 4 Feb 2015 12:17:38 +0200 Subject: [PATCH] Fix for ftp_send_type - was missing type param Author: mterzo https://github.com/mterzo/motion/commit/2dbff19b9dc1a6505e1a279bc210d44259bd789d --- netcam_ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netcam_ftp.c b/netcam_ftp.c index a6533c15..f91d0db8 100644 --- a/netcam_ftp.c +++ b/netcam_ftp.c @@ -789,7 +789,7 @@ int ftp_send_type(ftp_context_pointer ctxt, char type) toupper(type); /* Assure transfer will be in "image" mode. */ - snprintf(buf, sizeof(buf), "TYPE I\r\n"); + snprintf(buf, sizeof(buf), "TYPE %c\r\n", utype); len = strlen(buf); res = send(ctxt->control_file_desc, buf, len, 0);