From 7b18a9a6eb86fd2010049b5235aa32058edbb2dc Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 27 Jan 2009 23:26:15 +0000 Subject: [PATCH] Avoid warning. --- cmd-load-buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd-load-buffer.c b/cmd-load-buffer.c index f10cf255..ab4c5c60 100644 --- a/cmd-load-buffer.c +++ b/cmd-load-buffer.c @@ -1,4 +1,4 @@ -/* $Id: cmd-load-buffer.c,v 1.1 2009-01-25 19:00:10 tcunha Exp $ */ +/* $Id: cmd-load-buffer.c,v 1.2 2009-01-27 23:26:15 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha @@ -77,7 +77,7 @@ cmd_load_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) return (-1); } - if (fread(buf, 1, statbuf.st_size, f) != statbuf.st_size) { + if (fread(buf, 1, statbuf.st_size, f) != (size_t) statbuf.st_size) { ctx->error(ctx, "%s: fread error", data->arg); xfree(buf); fclose(f);