summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-18 10:27:33 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-18 10:31:58 +0200
commitac4f8fc1751d4f0de33e519c2804c1507238983d (patch)
tree75aec68128dc6b244927a3707daa27040fa13c67
parentb85255a2b51a601b4819b150ade9b16887a06c23 (diff)
downloaduca-ac4f8fc1751d4f0de33e519c2804c1507238983d.tar.gz
uca-ac4f8fc1751d4f0de33e519c2804c1507238983d.tar.bz2
uca-ac4f8fc1751d4f0de33e519c2804c1507238983d.tar.xz
uca-ac4f8fc1751d4f0de33e519c2804c1507238983d.zip
Fix out-of-bounds errors
It's a bit strange that I only get warnings at release builds but not at debug builds.
-rw-r--r--src/cameras/uca-mock-camera.c2
-rw-r--r--src/cameras/uca-pco-camera.c2
-rw-r--r--src/cameras/uca-ufo-camera.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cameras/uca-mock-camera.c b/src/cameras/uca-mock-camera.c
index d27423e..17a722f 100644
--- a/src/cameras/uca-mock-camera.c
+++ b/src/cameras/uca-mock-camera.c
@@ -63,7 +63,7 @@ static const gchar *mock_overrideables[N_PROPERTIES] = {
"has-camram-recording"
};
-static GParamSpec *mock_properties[N_PROPERTIES - N_INTERFACE_PROPERTIES] = { NULL, };
+static GParamSpec *mock_properties[N_PROPERTIES] = { NULL, };
struct _UcaMockCameraPrivate {
guint width;
diff --git a/src/cameras/uca-pco-camera.c b/src/cameras/uca-pco-camera.c
index 8ee4db5..a2eb259 100644
--- a/src/cameras/uca-pco-camera.c
+++ b/src/cameras/uca-pco-camera.c
@@ -109,7 +109,7 @@ static const gchar *base_overrideables[N_PROPERTIES] = {
"has-camram-recording"
};
-static GParamSpec *pco_properties[N_PROPERTIES - N_INTERFACE_PROPERTIES] = { NULL, };
+static GParamSpec *pco_properties[N_PROPERTIES] = { NULL, };
/*
* This structure defines type-specific properties of PCO cameras.
diff --git a/src/cameras/uca-ufo-camera.c b/src/cameras/uca-ufo-camera.c
index 43d0454..631144c 100644
--- a/src/cameras/uca-ufo-camera.c
+++ b/src/cameras/uca-ufo-camera.c
@@ -84,7 +84,7 @@ static const gchar *base_overrideables[N_PROPERTIES] = {
"has-camram-recording"
};
-static GParamSpec *ufo_properties[N_PROPERTIES - N_INTERFACE_PROPERTIES] = { NULL, };
+static GParamSpec *ufo_properties[N_PROPERTIES] = { NULL, };
struct _UcaUfoCameraPrivate {