diff options
author | Ondrej Holy <oholy@redhat.com> | 2017-06-15 13:01:07 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2017-11-28 14:51:56 +0100 |
commit | 7e663df0e3113e932631429598befe42f2b0f756 (patch) | |
tree | fb26fa399ef416c35ad851ea290022646ff648b1 | |
parent | 5af38d0d3f00b8d1eab7c6dbc0906a853621836b (diff) | |
download | gvfs-7e663df0e3113e932631429598befe42f2b0f756.tar.gz |
afp: Prevent comparsion between signed and unsigned
Swap gssize and gsize data types in order to prevent comparisons and
other operations between signed and unsigned types, which might lead
to troubles.
https://bugzilla.gnome.org/show_bug.cgi?id=747412
-rw-r--r-- | daemon/gvfsafpconnection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c index 806af01e..1074dde3 100644 --- a/daemon/gvfsafpconnection.c +++ b/daemon/gvfsafpconnection.c @@ -888,7 +888,7 @@ read_all_cb (GObject *source_object, GAsyncResult *res, gpointer user_data) GInputStream *stream = G_INPUT_STREAM (source_object); GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (user_data); - gsize bytes_read; + gssize bytes_read; GError *err = NULL; ReadAllData *read_data; @@ -1187,7 +1187,7 @@ typedef struct gsize count; int io_priority; GCancellable *cancellable; - gssize bytes_written; + gsize bytes_written; } WriteAllData; inline static void |