X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=pscp.c;h=451bdb03f34066adb7752d55e933eb48a5abfc0b;hb=5eb70af8b1f1827d88ca30191dd3969fe4ffb38d;hp=3ef1b33d89e5151accbefd8fdc5cea5adf2508c4;hpb=a071dfdcd2713f4e6569486e2da790fd21a0408d;p=PuTTY.git diff --git a/pscp.c b/pscp.c index 3ef1b33d..451bdb03 100644 --- a/pscp.c +++ b/pscp.c @@ -50,6 +50,8 @@ static void source(char *src); static void rsource(char *src); static void sink(char *targ, char *src); +const char *const appname = "PSCP"; + /* * The maximum amount of queued data we accept before we stop and * wait for the server to process some. @@ -176,7 +178,8 @@ int from_backend(void *frontend, int is_stderr, const char *data, int datalen) */ if (is_stderr) { if (len > 0) - fwrite(data, 1, len, stderr); + if (fwrite(data, 1, len, stderr) < len) + /* oh well */; return 0; } @@ -2091,7 +2094,7 @@ static void get_dir_list(int argc, char *argv[]) host = src; src = colon(src); if (src == NULL) - bump("Local to local copy not supported"); + bump("Local file listing not supported"); *src++ = '\0'; if (*src == '\0') src = ".";