patch-2.2.18 linux/drivers/char/c-qcam.c
Next file: linux/drivers/char/console.c
Previous file: linux/drivers/char/bw-qcam.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sat Nov 18 00:46:54 2000
- Orig file:
v2.2.17/drivers/char/c-qcam.c
- Orig date:
Fri Apr 21 12:45:51 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/char/c-qcam.c linux/drivers/char/c-qcam.c
@@ -612,12 +612,9 @@
case VIDIOCGWIN:
{
struct video_window vw;
- vw.x=0;
- vw.y=0;
+ memset(&vw, 0, sizeof(vw));
vw.width=qcam->width;
vw.height=qcam->height;
- vw.chromakey=0;
- vw.flags=0;
if(copy_to_user(arg, &vw, sizeof(vw)))
return -EFAULT;
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)