projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On Windows, character set specifications of the form 'IBM437' would never have
[u/mdw/putty]
/
pscp.c
diff --git
a/pscp.c
b/pscp.c
index
8693668
..
451bdb0
100644
(file)
--- 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);
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.
/*
* 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)
*/
if (is_stderr) {
if (len > 0)
- fwrite(data, 1, len, stderr);
+ if (fwrite(data, 1, len, stderr) < len)
+ /* oh well */;
return 0;
}
return 0;
}