From nobody Wed Dec 17 08:51:12 2025 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 841F2236A70 for ; Fri, 9 May 2025 16:30:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746808245; cv=none; b=B6/3Nt/bzKjsfOYCUFyhpahDhpkc2SxyZ2T6iQbci9CGAYbjCQ2FWGOb0aBgJLj08u9AJI7TBrnF8f2RRpGwRmxDozDww8egMH3uKZNDE1cuARgy7Fs7Po/BDDlko/C5M3z1c9AsYRHoUjDfZdWoF/joM9HBKCZitGZkrRpgSwo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746808245; c=relaxed/simple; bh=NzrY/1ewqebxTfDLviyUcpEnV4ZulnCWBj89W+GHgZA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rugCH3Vsyi4WFLKMJZq56drF0uon4HOImDDEDjLtnuhe+J/hLlDFjjpMXVknuCY8OD1tUdsE31cvOL0/S6nNJd48Rmu+Z9NKKFLHsrrjxZAi8QqvmvVuIll6FfNtKuzBRbsfdj3YDdj8SYpLVcZeeyQn3Lt+ItiZIiQoZRWcvZ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=iN+WluyY; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="iN+WluyY" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1746808231; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=GglqYaDK1E5miYpG6JM3LCeaJfder+0zsmAeMdh8uhk=; b=iN+WluyYopFMAE34eoS7VXTJbK4Q3d7MF+7PAnYJmmdd1x408foH+O1O58uZWCak4ROASb nf/a7/ztNXD0WsJgQR+wrcnUe+s+LfYyHvXKHv7VlRb5uPDjYVLQ8TYO1oSVUvFsgajlzq LpyjSCsMI5HY0/zyhOqWM0DZ+NLrFVM= From: Thorsten Blum To: Jaroslav Kysela , Takashi Iwai , Andi Shyti , Rodrigo Vivi , Jani Nikula , Lucas De Marchi Cc: Thorsten Blum , Takashi Iwai , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: intel-hdmi-audio: Replace deprecated strcpy() with strscpy() Date: Fri, 9 May 2025 18:29:28 +0200 Message-ID: <20250509162930.171047-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" strcpy() is deprecated; use strscpy() instead. No functional changes intended. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum --- sound/x86/intel_hdmi_audio.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sound/x86/intel_hdmi_audio.c b/sound/x86/intel_hdmi_audio.c index 7fcc528a0204..fe5cb4139088 100644 --- a/sound/x86/intel_hdmi_audio.c +++ b/sound/x86/intel_hdmi_audio.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -1698,9 +1699,9 @@ static int __hdmi_lpe_audio_probe(struct platform_dev= ice *pdev) card_ctx =3D card->private_data; card_ctx->dev =3D &pdev->dev; card_ctx->card =3D card; - strcpy(card->driver, INTEL_HAD); - strcpy(card->shortname, "Intel HDMI/DP LPE Audio"); - strcpy(card->longname, "Intel HDMI/DP LPE Audio"); + strscpy(card->driver, INTEL_HAD); + strscpy(card->shortname, "Intel HDMI/DP LPE Audio"); + strscpy(card->longname, "Intel HDMI/DP LPE Audio"); =20 card_ctx->irq =3D -1; =20 --=20 2.49.0