summaryrefslogtreecommitdiffstats
path: root/src/cameras/ipe.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-16 08:58:55 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-16 08:58:55 +0100
commit54a229b3864fe7867da69ef7427877094a256f1c (patch)
tree44b314944e24f3ef522360d76255bbc21ea36e12 /src/cameras/ipe.c
parent98511f7a77e7b37f9508b66298d99d7d1103e422 (diff)
downloadlibuca-54a229b3864fe7867da69ef7427877094a256f1c.tar.gz
libuca-54a229b3864fe7867da69ef7427877094a256f1c.tar.bz2
libuca-54a229b3864fe7867da69ef7427877094a256f1c.tar.xz
libuca-54a229b3864fe7867da69ef7427877094a256f1c.zip
Pass target string size when calling uca_get_property
Diffstat (limited to 'src/cameras/ipe.c')
-rw-r--r--src/cameras/ipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cameras/ipe.c b/src/cameras/ipe.c
index d1a331c..d6a8f8e 100644
--- a/src/cameras/ipe.c
+++ b/src/cameras/ipe.c
@@ -19,14 +19,14 @@ static uint32_t uca_ipe_set_property(struct uca_camera_t *cam, enum uca_property
return UCA_NO_ERROR;
}
-static uint32_t uca_ipe_get_property(struct uca_camera_t *cam, enum uca_property_ids property, void *data)
+static uint32_t uca_ipe_get_property(struct uca_camera_t *cam, enum uca_property_ids property, void *data, size_t num)
{
pcilib_t *handle = GET_HANDLE(cam);
pcilib_register_value_t value = 0;
switch (property) {
case UCA_PROP_NAME:
- strcpy((char *) data, "IPE PCIe based on CMOSIS CMV2000");
+ strncpy((char *) data, "IPE PCIe based on CMOSIS CMV2000", bytes);
break;
case UCA_PROP_WIDTH: