From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: Ard Biesheuvel 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: [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: , X-List-Received-Date: Mon, 24 Oct 2016 17:42:21 -0000 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(-) 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 { -- 2.7.4