From patchwork Mon Oct 24 17:41:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 79024 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2703320qge; Mon, 24 Oct 2016 10:42:29 -0700 (PDT) X-Received: by 10.99.189.1 with SMTP id a1mr25863931pgf.178.1477330949749; Mon, 24 Oct 2016 10:42:29 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id sq1si13811349pab.110.2016.10.24.10.42.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Oct 2016 10:42:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 80F831A1EC3; Mon, 24 Oct 2016 10:42:22 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0EB6E1A1EC3 for ; Mon, 24 Oct 2016 10:42:21 -0700 (PDT) Received: by mail-wm0-x22a.google.com with SMTP id f193so135898296wmg.0 for ; Mon, 24 Oct 2016 10:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sSXzCybaiUnZ+/kGh98ojWRm0X2BhXY7paYszS+msaM=; b=X/Qicqm0HgGTf5SapGcaUFC15YdblI6Wrh1rrBtlATn0hgN3FQnVT54kE+LJgIP9Fj jPBTAc+67vyyk5PEtBphvOzSbO5Aqd1IifGFIgAEM6CQ91ZCbVbkf/ck6+I357ED3WSF /zc+z86ET3ceYfjR3tEILw6lddRFnqkKhN0LM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sSXzCybaiUnZ+/kGh98ojWRm0X2BhXY7paYszS+msaM=; b=R3/wI++5KNtxDaJhgNzWVaV7mPySXWpxs4I4FgGJKi3Qhpo71SCAaueExGwkbZiUGr DA3qVyh+zMWtKFXvWkDEXjiDsM+8reGoK1GW/ZYeM4j+r1kKjl1K8E1fr8YirOen6O98 I7VOq7Jt9c8qLP1rhLNX4PQjkg/b6DYqos2VacY7I5579sLEXUIlXyNiqQOfWrPuViJj yJcIV1CjtjYShiomA0R7ckPsSO+KOwrcqOjMYiAjlC+QdnQauFiBsG+ohDOnDc+TYwBt knn4aifykVA4DQag39eef989LMpZrZLU54xRj27hScSy6UMurRDQXPaFqTDMmku6T4Fv /PGg== X-Gm-Message-State: AA6/9RlYHSUX79P1ck+xL6S91hhys+hNVpTrArWGxlI4l0biSgwE+Zhc1YN9Jf5wDaxpOtmb X-Received: by 10.28.194.134 with SMTP id s128mr24085198wmf.26.1477330939454; Mon, 24 Oct 2016 10:42:19 -0700 (PDT) Received: from localhost.localdomain ([105.146.229.54]) by smtp.gmail.com with ESMTPSA id 194sm15894873wmj.20.2016.10.24.10.42.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 10:42:18 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, lersek@redhat.com Date: Mon, 24 Oct 2016 18:41:46 +0100 Message-Id: <1477330907-13733-9-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477330907-13733-1-git-send-email-ard.biesheuvel@linaro.org> References: <1477330907-13733-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 8/9] EmbeddedPkg/MmcDxe: eliminate deprecated string function calls X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Get rid of calls to unsafe string functions. These are deprecated and may be removed in the future. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- EmbeddedPkg/Universal/MmcDxe/Diagnostics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/EmbeddedPkg/Universal/MmcDxe/Diagnostics.c b/EmbeddedPkg/Universal/MmcDxe/Diagnostics.c index 783e548d2aed..b489393e27b0 100644 --- a/EmbeddedPkg/Universal/MmcDxe/Diagnostics.c +++ b/EmbeddedPkg/Universal/MmcDxe/Diagnostics.c @@ -44,7 +44,7 @@ DiagnosticLog ( UINTN len = StrLen (Str); if (len <= mLogRemainChar) { mLogRemainChar -= len; - StrCpy (mLogBuffer, Str); + StrCpyS (mLogBuffer, mLogRemainChar, Str); mLogBuffer += len; return len; } else {