]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - logging.c
Fix the _rest_ of the Windows compile warnings. (ahem)
[PuTTY.git] / logging.c
index 7c9b1287d4a684746572b7dccc17e55771009d9b..7465480423421606defe0b3c25d45634d168d7e0 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -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 */