From patchwork Mon Sep 13 19:47:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 4327 Return-path: Envelope-to: mchehab@pedra Delivery-date: Mon, 13 Sep 2010 16:54:47 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1OvF70-0006ki-Hi for mchehab@pedra; Mon, 13 Sep 2010 16:54:46 -0300 Received: from bombadil.infradead.org [18.85.46.34] by localhost.localdomain with IMAP (fetchmail-6.3.17) for (single-drop); Mon, 13 Sep 2010 16:54:46 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OvF6o-0004W6-Ir; Mon, 13 Sep 2010 19:54:34 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755210Ab0IMTs1 (ORCPT + 1 other); Mon, 13 Sep 2010 15:48:27 -0400 Received: from mail.perches.com ([173.55.12.10]:1843 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755173Ab0IMTsZ (ORCPT ); Mon, 13 Sep 2010 15:48:25 -0400 Received: from Joe-Laptop.home (unknown [192.168.1.162]) by mail.perches.com (Postfix) with ESMTP id 0BED424371; Mon, 13 Sep 2010 12:48:25 -0700 (PDT) From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Mauro Carvalho Chehab , mjpeg-users@lists.sourceforge.net, linux-media@vger.kernel.org Subject: [PATCH 07/25] drivers/media: Use static const char arrays Date: Mon, 13 Sep 2010 12:47:45 -0700 Message-Id: <6b7055a2e53510e8903828a53cad300a7d5bb912.1284406638.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.rc1 In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Signed-off-by: Joe Perches --- drivers/media/video/zoran/zoran_device.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/video/zoran/zoran_device.c b/drivers/media/video/zoran/zoran_device.c index 6f846ab..ea8a1e9 100644 --- a/drivers/media/video/zoran/zoran_device.c +++ b/drivers/media/video/zoran/zoran_device.c @@ -1470,8 +1470,7 @@ zoran_irq (int irq, (zr->codec_mode == BUZ_MODE_MOTION_DECOMPRESS || zr->codec_mode == BUZ_MODE_MOTION_COMPRESS)) { if (zr36067_debug > 1 && (!zr->frame_num || zr->JPEG_error)) { - char sc[] = "0000"; - char sv[5]; + char sv[sizeof("0000")]; int i; printk(KERN_INFO @@ -1481,7 +1480,7 @@ zoran_irq (int irq, zr->jpg_settings.field_per_buff, zr->JPEG_missed); - strcpy(sv, sc); + strcpy(sv, "0000"); for (i = 0; i < 4; i++) { if (le32_to_cpu(zr->stat_com[i]) & 1) sv[i] = '1';