From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (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 A161026461F for ; Tue, 11 Nov 2025 22:47:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762901270; cv=none; b=a+/fYHZt+pZhgPJPEVLB8rUwUuQa71WOWxAtv+K0u16LN9sE9I+Ifo0DwCpIzQ46OoE86GVH/MaiXfNcQa33nGqUNt9F/lHRUURkLDgNlzJ8Jm4RxRSSDdcCWFeelkkEThSVsMwOvFGXecogRK2DEVo8PiY/ySQvKNbOpT3Op54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762901270; c=relaxed/simple; bh=2P8c1aQuKfBDyu9QMt90TdukXfWtkr301qI8c6GFi5c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tJd5KAdWAIQQMi2xlKYBq17EoRqL/6punty0aMatjwYIQ1k9N2D9iwwXy8buil95Ne3SYz/nL7IqJthXflCzPWFMo84g3VHtZDm26xwoYqq1a4ZuqYAZ0MCsjuafMru2KbFWhRuwRjKktT6cxWGTUE73wkfbFQPXvUIm9pzqHGc= 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=E+99C8yq; arc=none smtp.client-ip=91.218.175.178 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="E+99C8yq" 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=1762901266; 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: in-reply-to:in-reply-to:references:references; bh=Vu9Ap1A3kpxCFBsKY6SjgLxqf2YxfUvdNhcqB35dkhI=; b=E+99C8yqnnNxOEXXzP5L1httZTDRQP/pdJxR77mKCyAJnV6iiLDoY2F7XMkFSeLPqMYNok jGsphMbyr8ZCHjB93MnILTWNdvCxaMEKE8df44tXwYC7vuOUtHTgQMusoZyxl9Kll5kCfC +VEfC0sRG1SPGi+9nybcAJ2K1oA4xgY= From: Thorsten Blum To: Cezary Rojewski , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Pierre-Louis Bossart , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Thorsten Blum , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ASoC: Intel: sst: Replace deprecated strcpy in sst_acpi_probe Date: Tue, 11 Nov 2025 23:47:03 +0100 Message-ID: <20251111224706.87508-4-thorsten.blum@linux.dev> In-Reply-To: <20251111224706.87508-2-thorsten.blum@linux.dev> References: <20251111224706.87508-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT strcpy() is deprecated; use the safer strscpy() instead. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum --- sound/soc/intel/atom/sst/sst_acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/intel/atom/sst/sst_acpi.c b/sound/soc/intel/atom/sst/sst_acpi.c index 257180630475..73624e1b138a 100644 --- a/sound/soc/intel/atom/sst/sst_acpi.c +++ b/sound/soc/intel/atom/sst/sst_acpi.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -356,7 +357,7 @@ static int sst_acpi_probe(struct platform_device *pdev) /* Fill sst platform data */ ctx->pdata = pdata; - strcpy(ctx->firmware_name, mach->fw_filename); + strscpy(ctx->firmware_name, mach->fw_filename); ret = sst_platform_get_resources(ctx); if (ret) -- 2.51.1