V4L/DVB (3967): Pwc-dec23 oops fix
authorakpm@osdl.org <akpm@osdl.org>
Mon, 22 May 2006 13:31:49 +0000 (10:31 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 04:59:55 +0000 (01:59 -0300)
drivers/media/video/pwc/pwc-dec23.c: In function `pwc_dec23_decompress':
drivers/media/video/pwc/pwc-dec23.c:885: warning: null argument where non-null required (arg 2)

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pwc/pwc-dec23.c

index f9096c72cbb79aedf89c3e3b30f9e09d76b9b54d..39eaf58396df5fb1461c4d5cd3fda08e8a790410 100644 (file)
@@ -882,7 +882,7 @@ void pwc_dec23_decompress(const struct pwc_device *pwc,
 
                }
 #else
-               memcpy(dst, 0, pwc->view.x * pwc->view.y);
+               memset(dst, 0, pwc->view.x * pwc->view.y);
 #endif
 
        } else {