diff options
author | Julien BLACHE <jblache@debian.org> | 2011-02-04 19:56:33 +0100 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:58 +0000 |
commit | eb2d7e4cf8eebc85bb69b8a6fb646acc6192ccbb (patch) | |
tree | 46ef29d04500bc92897f24ebe1e93e1c16cf4bfb /src/xsane-scan.c | |
parent | bbb14791f2535cea66c313d069020b84c2c0fad2 (diff) | |
parent | ca9f280d0ac4173cdd29f745fd574a3b597969e7 (diff) |
Imported Debian patch 0.998-1debian/0.998-1
Diffstat (limited to 'src/xsane-scan.c')
-rw-r--r-- | src/xsane-scan.c | 5 |
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); } |