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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user