summaryrefslogtreecommitdiff
path: root/src/xsane-scan.c
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:56 +0000
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:56 +0000
commitca9f280d0ac4173cdd29f745fd574a3b597969e7 (patch)
treee2343ef072e57405d88c9d7f96d196dddcc153ce /src/xsane-scan.c
parented1d7afab34d41b155ac701ee9db87c3f057b99b (diff)
Imported Upstream version 0.998upstream/0.998
Diffstat (limited to 'src/xsane-scan.c')
-rw-r--r--src/xsane-scan.c5
1 files changed, 3 insertions, 2 deletions
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 <Oliver.Rauch@rauch-domain.de>
- 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);
}