ftp.c: Fixed compilation warning

There is an implicit conversion from "unsigned long" to "long"