From 4cb4c615e9f6ebd880a55a3c694e2920834f5536 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 3 Aug 2015 08:09:51 +0200 Subject: Read one less line to avoid segfaults --- uca-ufo-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uca-ufo-camera.c b/uca-ufo-camera.c index 7f9690f..a9c2502 100644 --- a/uca-ufo-camera.c +++ b/uca-ufo-camera.c @@ -235,7 +235,7 @@ setup_pcilib (UcaUfoCameraPrivate *priv) priv->property_table = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_free); N_PROPERTIES = update_properties (priv); - priv->height = read_register_value (priv->handle, "cmosis_number_lines_single") + 1; + priv->height = read_register_value (priv->handle, "cmosis_number_lines_single"); priv->frequency = read_register_value (priv->handle, "control") >> 31; adc_resolution = read_register_value (priv->handle, "adc_resolution"); -- cgit v1.2.3