diff --git a/Ssh.c b/Ssh.c index f2ba7bc..4ee08e6 100644 --- a/Ssh.c +++ b/Ssh.c @@ -107,8 +107,13 @@ int SshFlags=0; STREAM *S; + if (iPath) + { ptr=iPath; if (*ptr=='/') ptr++; + } + else ptr=""; + //if SF_RDONLY is set, then we treat this as a 'file get' if (Flags & SF_RDONLY) {