X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/41d3adbbfed77605e4a397ce199c5751c35bf94b..2b0c045b635e108602a614beb8bf8343c4d21102:/plink.c diff --git a/plink.c b/plink.c index b7a2fd4b..b2c07acc 100644 --- a/plink.c +++ b/plink.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #define PUTTY_DO_GLOBALS /* actually _define_ globals */ @@ -147,6 +148,8 @@ int from_backend(int is_stderr, char *data, int len) HANDLE h = (is_stderr ? errhandle : outhandle); int osize, esize; + assert(len > 0); + if (is_stderr) { bufchain_add(&stderr_data, data, len); try_output(1);