1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-13 17:17:37 -05:00

Fix the _rest_ of the Windows compile warnings. (ahem)

[originally from svn r9201]
This commit is contained in:
Simon Tatham
2011-07-12 18:13:33 +00:00
parent 1fda4423e0
commit f1aadeed67
3 changed files with 11 additions and 11 deletions

View File

@ -43,7 +43,7 @@ static void logwrite(struct LogContext *ctx, void *data, int len)
bufchain_add(&ctx->queue, data, len);
} else if (ctx->state == L_OPEN) {
assert(ctx->lgfp);
if (fwrite(data, 1, len, ctx->lgfp) < len) {
if (fwrite(data, 1, len, ctx->lgfp) < (size_t)len) {
logfclose(ctx);
ctx->state = L_ERROR;
/* Log state is L_ERROR so this won't cause a loop */