in sftp.c (line 372 in 3.8.1p1) the \ escapes the following %c format current: error("Bad escaped character '\%c'", should be: error("Bad escaped character '\\%c'", At least the IBM compiler on AIX complains about that.
Fix applied - thanks!