summaryrefslogtreecommitdiffstats
path: root/src/cameras
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-17 12:40:37 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-17 12:40:55 +0200
commit753a20e6fc17d9266a94663f5a89a11eaf982284 (patch)
tree3647e5a9dc44dc41958fc835d25eab1d91aa3cf1 /src/cameras
parente715d48602dac7f5d86453f80421348252ab92df (diff)
downloaduca-753a20e6fc17d9266a94663f5a89a11eaf982284.tar.gz
uca-753a20e6fc17d9266a94663f5a89a11eaf982284.tar.bz2
uca-753a20e6fc17d9266a94663f5a89a11eaf982284.tar.xz
uca-753a20e6fc17d9266a94663f5a89a11eaf982284.zip
Fix potential overflow error
Diffstat (limited to 'src/cameras')
-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 e573d21..da186a8 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 - 1] = { NULL, };
+static GParamSpec *mock_properties[N_PROPERTIES - N_INTERFACE_PROPERTIES] = { NULL, };
struct _UcaMockCameraPrivate {
guint width;
diff --git a/src/cameras/uca-pco-camera.c b/src/cameras/uca-pco-camera.c
index 11328e9..8ee4db5 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 - 1] = { NULL, };
+static GParamSpec *pco_properties[N_PROPERTIES - N_INTERFACE_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 52d06fb..97e4271 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 - 1] = { NULL, };
+static GParamSpec *ufo_properties[N_PROPERTIES - N_INTERFACE_PROPERTIES] = { NULL, };
struct _UcaUfoCameraPrivate {