summaryrefslogtreecommitdiffstats
path: root/src/cameras
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-16 11:28:11 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-16 11:28:11 +0100
commit42cf4c6d95639b785b5c4f0f704e3552df22ed9e (patch)
treed375d6e15561ce714ed5419bac55edc4bdccfc76 /src/cameras
parent2de85655bd50cfcd2a21267ecf4e5f91b0800a9c (diff)
downloaduca-42cf4c6d95639b785b5c4f0f704e3552df22ed9e.tar.gz
uca-42cf4c6d95639b785b5c4f0f704e3552df22ed9e.tar.bz2
uca-42cf4c6d95639b785b5c4f0f704e3552df22ed9e.tar.xz
uca-42cf4c6d95639b785b5c4f0f704e3552df22ed9e.zip
Fix size bug in ipe.c
Diffstat (limited to 'src/cameras')
-rw-r--r--src/cameras/ipe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cameras/ipe.c b/src/cameras/ipe.c
index d6a8f8e..9f01767 100644
--- a/src/cameras/ipe.c
+++ b/src/cameras/ipe.c
@@ -26,7 +26,7 @@ static uint32_t uca_ipe_get_property(struct uca_camera_t *cam, enum uca_property
switch (property) {
case UCA_PROP_NAME:
- strncpy((char *) data, "IPE PCIe based on CMOSIS CMV2000", bytes);
+ strncpy((char *) data, "IPE PCIe based on CMOSIS CMV2000", num);
break;
case UCA_PROP_WIDTH:
@@ -102,7 +102,6 @@ static uint32_t uca_ipe_destroy(struct uca_camera_t *cam)
uint32_t uca_ipe_init(struct uca_camera_t **cam, struct uca_grabber_t *grabber)
{
pcilib_model_t model = PCILIB_MODEL_DETECT;
- pcilib_bar_t bar = PCILIB_BAR_DETECT;
pcilib_t *handle = pcilib_open("/dev/fpga0", model);
if (handle < 0)
return UCA_ERR_CAM_NOT_FOUND;