From ca9f280d0ac4173cdd29f745fd574a3b597969e7 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 3 Oct 2014 14:05:56 +0000 Subject: Imported Upstream version 0.998 --- src/xsane-scan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/xsane-scan.c') diff --git a/src/xsane-scan.c b/src/xsane-scan.c index fb32ba6..88f954a 100644 --- a/src/xsane-scan.c +++ b/src/xsane-scan.c @@ -3,7 +3,7 @@ xsane-scan.c Oliver Rauch - Copyright (C) 1998-2007 Oliver Rauch + Copyright (C) 1998-2010 Oliver Rauch This file is part of the XSANE package. This program is free software; you can redistribute it and/or modify @@ -141,6 +141,7 @@ static void xsane_read_image_data(gpointer data, gint source, GdkInputCondition SANE_Int len; int i, j; char buf[TEXTBUFSIZE]; + size_t bytes_read; DBG(DBG_proc, "xsane_read_image_data\n"); @@ -394,7 +395,7 @@ static void xsane_read_image_data(gpointer data, gint source, GdkInputCondition long fpos = ftell(xsane.out); fseek(xsane.out, 0, SEEK_CUR); /* sync between write and read */ - fread(rgbbuf, 1, bytes - 1, xsane.out); + bytes_read = fread(rgbbuf, 1, bytes - 1, xsane.out); fseek(xsane.out, fpos, SEEK_SET); } -- cgit v1.2.3