summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uca-net-camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uca-net-camera.c b/uca-net-camera.c
index ce0e26b..1194e09 100644
--- a/uca-net-camera.c
+++ b/uca-net-camera.c
@@ -324,7 +324,7 @@ request_get_property (GSocketConnection *connection, const gchar *name, GValue *
return FALSE;
/* reply */
- if (g_input_stream_read (input, &reply, sizeof (reply), NULL, error) < 0)
+ if (!g_input_stream_read_all (input, &reply, sizeof (reply), NULL, NULL, error))
return FALSE;
if (reply.type != request.type) {