summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2015-04-18 22:09:03 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2015-04-18 22:09:03 +0200
commit6aa6d3a941b4457d89a9b504709260909de8a8c2 (patch)
treef7b11eafdddca981704005a58c3d5994ffd530d0 /src
parenta02d59bf60cfccdb784850d98871a0c90e24bd64 (diff)
use signed variable to store read(2) return value
reported-by: David Binderman
Diffstat (limited to 'src')
-rw-r--r--src/GsWidget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx
index f6c58e3..4efd3dc 100644
--- a/src/GsWidget.cxx
+++ b/src/GsWidget.cxx
@@ -256,7 +256,7 @@ GsWidget::load_page(int p) {
}
int GsWidget::fd_copy(int to, int from, size_t len) {
- size_t r;
+ ssize_t r;
char buf[1024];
int ret = 0;